US health insurance costs about $13k a year for a family of 3, for a decent plan, and that’s if you pay for all of it yourself (ie you’re unemployed but wealthy, so don’t qualify for special rates). In-state tuition is also not too bad.
https://www.glassdoor.com/Salaries/san-francisco-infrastruct...
software developer is even less paid it seems:
https://www.glassdoor.com/Salaries/san-francisco-software-de...
So, at the end of the day, it's all about purchasing power. Which is very different depending on what economic band you're in and what place you live.
For instance, there's no question that Bill Gates would be worse off in the Swedish tax system than the US one.. but that's not true of all people.
Healthcare is a prime (but not exclusive) example of this.
The only scenario I can think of is to start in-office in SF, prove your value and then go remote after some time and maintain salary. I have not tried that yet.