That is an american take.

Sweden just has an "office worker" union.

https://www.unionen.se/in-english/this-is-unionen

Now, they cannot prevent offshoring or AI use or replacements. Very very rarely if ever.

But they can negotiate a large layoff and give better pay/conditions during work etc. This view that unions can prevent anything... when so many jobs have gone to east EU (all amazing and good at what they do but lets face it, it is due to pay) so yea there wont be any union preventing AI...