SF residents are among the richest in the world.
SF housing is made extremely expensive by multi decade long anti housing policies, but that's completely artificial.
If the Chinese ran housing in SF, there would be housing for 5 million people there.