Is it installed, and/or enabled via Windows > Settings > Gaming > Xbox Game Bar?
You have Windows 11, yes/no?