Average time in queue in the Stockholm region: 8.5 years.
Average time in queue for central Stockholm: 15 Years.
If you don't want to wait that long, you generally have to a) sub-let, which as the example above shows, is very expensive. b) buy something, which in the central areas of Stockholm cost something like 50-80K SEK per square meter.
One could also live in non-Stockholm parts of Sweden, like Göteborg or Malmö, both of which have significant tech industries and lower housing costs.
Compressed salaries basically, so the high end is lower and the low end is higher. I generally like that, since it means I can have friends in different occupations without huge socioeconomic gaps between us. But it means the income at the high end doesn't buy the same lifestyle. It's nonetheless enough to buy a good lifestyle, imo: as someone around the 80th percentile in Copenhagen incomes I live "somewhat better" than the median income earner, but the median is already living a pretty decent lifestyle.