If you're going to do this, I wish people would go the other way. Don't work to prevent the worst from happening.
Write a law that end-users have an unlimited right to execute their own programs on their own devices, on par with the producers of said devices, just any code they want. A device doesn't support that? No selling in the EU for you ...
Such a right would make chat control impossible and unworkable as well, for the same reason that open source encryption can't be hacked. It will be impossible to prevent secure messengers to be installed.