Partially anecdotal:
The problem with hiring is from what I've seen not due to ageing population. Instead, due to very protective employment regulation employers in Sweden are absurdly slow and picky when hiring. Resulting in a very large temp staffing sector. They are also surprisingly conservative in expectations.
Contrasting anecdotal rant:
In 2014-2018 I was trying to help a Swedish company get a tech dev project going. They needed to bring in about five experts. For years this project was delayed until it was no longer relevant, because they had a pointlessly limited view on who they needed to hire, at what cost and under which structure. They would not accept a 15% salary increase above their opinion of the norm, and neither a distributed project nor a collaborative partner network construct. This loss of opportunity was huge for them.
During the same time I was staffing, running, and completing two projects in Switzerland, total of 25ppl. No issues, quick handling, excellent outcome. The Swiss investors understood that it's ok to run a project distributed across five countries and pay an extra 20-50% if it's difficult to find good people locally in a given field. Skill and speed is more important than location, cost, surname, language[2], etc.
This is not the only such situation I've come across in Sweden. I work as an R&D consultant specialised in setting up and running distributed collaborative high risk tech projects. Despite being a native Swede it's easier for me to run projects in Switzerland than in Sweden. Kind of sad.
For your second point:
For skilled immigrants (stem university degree) the situation is quite good.
From what I've heard, 2nd-3rd generation immigrants and onward tend to outperform the "native" population. This may change in Sweden after the large influx of unskilled refugees in the last 20-30 years, vs the predominantly work based immigration of 1950-1980s.
Statistically [1]: Sweden has one of the highest gaps in unemployment between European and non-European unskilled immigrants. If you're uneducated you _really_ should migrate to somewhere else if you _ever_ want to get a job.
1: https://en.wikipedia.org/api/rest_v1/page/graph/png/Immigrat...
2: as long as they know English well enough :)