What happened to San Francisco is that public transit is vastly degraded, and you can't use the bathroom at most private businesses, even if you buy something. Thus, you are leashed to the bathroom distance from your house. Thus, you must drive everywhere, which makes city living much much less attractive vs. being in the suburbs. Add to that that remote work is the norm now, and there seems to be a higher crime rate in the cities with all the rioting, and living in the suburbs makes a lot more sense.