You can use 4.4 (EoL end of February 2024). Otherwise you may be able to build from source for a more recent version.
Of course MongoDB Atlas is available too: https://www.mongodb.com/docs/atlas/