Ubuntu freezes package version number (with only few exceptions like browsers) when they release a new version.
You will either need to wait for a new version (most likely 23.10) or use 3rd party maintained PPAs.
Ubuntu 22.04 has ray tracing support for AMD RX 6000 graphics cards, but the performance is terrible. You can install Mesa 23.1 from a PPA and it will work much better. Be sure to take a backup in case something breaks and you need to revert to the stock version. I had some trouble getting the 32 bit Mesa libraries to install, which are required for Steam.
I can run Quake II RTX at 50-60 fps in 1080p on my RX 6700 XT using Mesa 23.1.3 and Linux kernel 5.15.
If using steam, there’s a steam snap project that also aims to upgrade mesa stack more, so that can use newer stack to play with 22.04 host installation.