The EU is trying to do this at an EU level (and has been for years). As well as an individual country level, Sweden seems likely to pass a similar law in 2026.
I can't relate to this feeling at all, writing code using a library I've found is almost always the source of bugs. Miscommunication between the library developer and their documentation, or my ability to read the documentation. And that's on top of how many big libraries I've seen with extremely simple exploits. Sadly I have to use a few, but I wince every time I install a package.
I analogized, but I'm glad you finally admit I didn't equate them. Because, shockingly, comparing is not equating. Literally any 2 things can be compared, that isn't equating.
The EU is trying to do this at an EU level (and has been for years). As well as an individual country level, Sweden seems likely to pass a similar law in 2026.
https://www.europol.europa.eu/media-press/newsroom/news/european-police-chiefs-call-for-industry-and-governments-to-take-action-against-end-to-end-encryption-roll-out
https://www.forbes.com/sites/digital-assets/2024/05/07/european-threat-to-end-to-end-encryption-would-invade-phones/
https://www.theregister.com/2025/02/26/signal_will_withdraw_from_sweden/
https://www.wired.com/story/europe-break-encryption-leaked-document-csa-law/