You can hide Steam games in your Steam library with just a few clicks. And if you want to unhide them later, finding them again only takes a moment.
In order to hide hover cards for inactive apps in taskbar of Windows 11, go to Settings > Personalization > Taskbar > Taskbar behaviors > Uncheck “Show hover cards for inactive and pinned taskbar apps ...