In Windows 11, the classic Snipping Tool has been updated with screen recording capabilities. This is the official tool if you need to record a specific area of your screen rather than just an app.
Here's a step-by-step guide to using the screen recorder: screen recorder microsoft