While true, an adversarial government can pass new laws to restrict access or installation of software it deems dangerous. Politicians, uh, find a way.
Open source. That means that they'd have to either prevent the downloading of the source, prevent it compiling, or prevent running something that you compiled on your own box. Any of those three seems to be guaranteeing that Europe will not have any leading role in computers for the foreseeable future. Any of those three also seems almost impossible to enforce.
When did personal computers die? Most desktops and laptops are fairly open and although android phones are not as open you can build software on your laptop/desktop for usage on your phone.
You could also use something like pinephone or librem. You wont have access to a lot of android tech but the most important functionality. A web browser, sending sms, email, making calls all work.