Some users encounter that the print screen feature is not functioning, when they install Window 11. To fix the issue, you need to scan the desktop with Webroot antivirus.
https://www.webroot-safe.com/blog/how-to/webroot-solves-the-issue-if-your-screenshot-tool-is-not-working-in-window-11/