Yeah, a lot of them apply explicitly to the government. In Germany at least most privacy laws flow from Article 10 of our constitution and for example Article 8 of the EU Charter of Fundamental Rights. Both of which have been used in the past to explicitly remove laws that violated privacy in the name of security.
Germany is definitely a standout. I was taking issue with the blanket reference to the EU
The UK when it was in the EU for example had no problem basically doing whatever it liked, relying on exceptions for preventing crime and disorder. I'm sure there are other countries
Or like a sibling comment about Italy, who said that the government just ignores the privacy laws