This issue was addressed with improved checks. This issue is fixed in Security Update 2022-004 Catalina, watchOS 8.6, macOS Monterey 12.4, macOS Big Sur 11.6.6. An app may be able to capture a user's screen.
https://support.apple.com/en-us/HT213256
https://support.apple.com/en-us/102770
https://support.apple.com/en-us/HT213257