Maybe static analysis can be imposed at the OS level, like macOS notarization?
https://developer.apple.com/documentation/security/notarizin...
I don't think the regulators are going to mandate that Apple not retain any consumer-protecting mechanisms.