From what I'm reading it sounds like it is not per-app:
Once you confirm you understand the risks, you’re all set to install apps from unverified developers, with the option of enabling for 7 days or indefinitely. For safety, you’ll still see a warning that the app is from an unverified developer, but you can just tap “Install Anyway.”
https://android-developers.googleblog.com/2026/03/android-developer-verification.html
Not that this makes it ok, this process is still something the vast majority of users will not do in practice and will kill the viability of apps with developers unwilling to show ID to Google.