Just from my knowledge you should be able to get rock steady frames on 1080p ultra in nearly all games, 1440p is pushing it a bit harder. Those specs are definitely "upper mid-range". Is this a laptop or a desktop PC, and is it new to you? There are some settings you can tweak in Windows to push performance more, like changing settings in the Nvidia app, turning on High Performance mode in Windows settings, making sure all drivers are up to date, etc.
Here are some useful links:
AMD Ryzen Drivers - downloads the Ryzen Master utility updater tool thing, useful to run this at least once every ~6-months
Windows Central: Win11 Performance Tweaks Guide
Perhaps look into updating BIOS as well if it's outdated. These are just the very very basic tips to make sure that your hardware is running as best as possible. From there, I'd look into the game specifically, perhaps it's just unoptimized since it is a new game.