Well. I can't talk for the current government of Sweden, but if I was the supreme leader of a Swedish Dictatorship, I am pretty confident that I could accomplish that by sending some very persuasive soldiers along with a government officer with some papers ordering those private companies to do whatever the fuck I wanted unless their executives wanted to experience some extra holes in their bodies.
Luckily Sweden is not a dictatorship and doesn't have a supreme leder. Our government can't just hand-wave things. There's the legislative branch which must've had the foresight to make laws that allows the executive branch to order operators to comply.
The parent asked "Which technologically advanced democratic countries DON'T have this capability already developed and deployed?" and there are many, every country on earth isn't run by warmongering corrupt idiots.
In case of war or major cataclysmic event, your government will definitely just hand-wave a lot of things you take for granted in order to keep the country and society from collapsing, including elections, democracy, freedom of speech, internet access, travel, etc since then the nation's survival becomes more important than your individual rights and freedom. See Covid hysteria, Ukraine war, etc.
I think coddled people from rich countries who never saw anything but prosperity since WW2 and no conflicts or events with major loss of life, have no idea just how radical governments can switch in an instant when society is threatened with collapse.