Containers are always an option, but not my preferred way at least. Usually a last resort if software is hell to build and package. With mise/asdf, it is at least pretty easy to get new toolchain versions on an older system.
Honestly, my main and pretty much only reason for running RHEL is that it has 5+5 years of support and is less broken than Debian/Ubuntu. If I could run Gentoo on a small 1 core VPS with a gigabyte of RAM, I would.