I bring this up because I don't think taxation has much to do with this. In NYC I was paying around 50% of my income towards taxes (federal, state, and local); when you factor in what I was paying towards things that the Swedish social system provides, I'm sure it amounted to very close to 60% (maybe even more!). But NYC is full of plenty of engineers or similarly well-paid professionals who've achieved financial independence. And, well, at least per Glassdoor (caveat emptor), the average software engineer gets paid literally twice as much in NYC than in Stockholm. IMO that probably has more to do with it.
What is important to the remember which most Swedes tend to forget is the payroll tax at 31.42% on the employer side.
To see how it evolves across incomes see this page (in Swedish)
https://www.ekonomifakta.se/fakta/skatter/skatt-pa-arbete/ma...