@zl2tod
One could claim something similar exists here too, in that what is now one large country used to be be very many different independent ones and those were generally respectively run through each their own general assembly (þing) and any kings chosen by, and revocable by, those þings, which eventually through violence and eventually inheritance in practice started electing same kings but still could revoke and sometimes did hundreds of years and only lost as the most powerful king at any time kept crushing those who didn't recognize the centrally hoarded power, I think in some ways all the way up to the end of the 1500s.
Sápmi (shown https://todon.eu/@b9AcE/111222099483024759 here) is also unceded AFAIK.
Now the laws have been rewritten so many times so all that remains AFAIK is the first line of the constitution, "All public power in Sweden proceeds from the people." and for traditional reasons a new monarch is still expected to go on a trip to old places of local power to ask to be confirmed as monarch, but now that's just a spectacle and they can't really say "no thank you, we're independent now".
I can only very, very, much hope that the military in your scenario would actually recognize the history and source of legitimacy claimed by the govt, so also recognize a revocation as they must.
@chris