Expensive by UK standards, but cheap vs Bay Area: Cambridge UK.
I've not been anywhere else that has the density of interesting people doing interesting stuff. London is not far if you need to break the bubble (and Stansted Airport even closer).
Downsides: salaries are generally lower than SV (esp for technical work), Brexit uncertainty, weather is fairly average, limited outdoor sport options (other than running, road cycling, rowing)