OBS Studio if you're into streaming,
Windows Game Bar if you want to use something native,
Nvidia Shadowplay if you have an Nvidia card,
AMD Radeon software also has a recording feature if you have an AMD card.
It really comes down to personal preference of which one fits best for you.