"The rule of law" is a general philosophical and legal doctrine, not the laws that happen to operate in a certain country at a certain moment. If, for example, the constitution places all decision power in the hands of a dictator, that would not be a rule-of-law regime, even if the decrees issued by said dictator are, technically speaking, legal. Historical examples of "legal" atrocities abound.
What you might hint at is that the social contract is open to negotiation and Sweden, as a sovereign state, is certainly within its rights to operate its laws and courts as such. Sure. But is it wise, long term? I have my doubts.