Might want to have a look at the "Mirage of Swedish Socialism". tldr: Sweden got its wealth with large deregulation and risked a lot of it by introducing many regulations stifling the economy and later reversing many of those regulations again.
https://www.fraserinstitute.org/sites/default/files/mirage-of-swedish-socialism-economic-history-of-welfare-state.pdf
