A technical question if I should go with DreamHost

Hello, I have a web application developed in Java 18, Spring 5, Spring Boot 2.6, Angular 13, and MongoDB 5. Initially, I deployed it to AWS but it turned out that the latest Java version supported by AWS was Java 11. I don’t want to re-do my work or downgrade my app to Java 11. Now if I go with DreamHost, what options do I have ? Is there an option that enables me to install the software and the versions I need, such as the above mentioned tools and versions ? I’m looking for a hosting plan that will optimize my expense while also giving me what I need to host my web application. Any idea ? Thanks!