All of these places suffering from severe housing shortages have some government policy which can clearly be linked to it. Sweden has rent control, London has a labyrinth of building restrictions based on historical preservation among other things, etc.
There's an obvious solution here, it's just not one most people living in these areas wants to hear.