But it’s not like any of them were ever controlled by a socialist/communist party at any point
Socialist parties took control of the various Scandinavian governments back in the 1930s, about the same time they were popping up across the rest of Europe.
The big difference between the Nordic states and the rest of Continental Europe was the lack of a sudden violent change of power. Consequently, there was no Losing Side from which the government could quickly and easily transfer wealth.
Instead, the Nords created state agencies to develop publicly owned enterprises, which rapidly enriched themselves on petrochemical production, refining, and export.
Public ownership of means of production is textbook socialism. But it is somewhat unique for a country to create the founding national entities as public and then grow them into global market players as state owned enterprises.
China, Cuba, or Vietnam
All had large agricultural economies that were expropriated by socialist governments after revolution.
Swedes, Nords, and Fins built their public system from the ground up with public labor.
It's akin to the university systems in the US, Europe, and East Asia, in that way. Enormous fountains of economic value produced almost entirely through public construction, investment, and employment.