You can write games in C++ (Unreal Engine), C# (Unity and Godot), Java (LWJGL, as seen in Minecraft), Python (using PyGame), JavaScript (DOM/canvas or something fancier). Nobody is using PyGame for anything serious, and Minecraft is probably the only serious Java game, but you can still play around with those.
C++ is popular in the game industry, because it compiles to native code and can be fast. Rust can also do both of these things, and it’s also memory-safe and saner in general, so why not try writing games with it and improve the game stability and developer experience?