I like C++ as it gives you direct access to many libraries both C and C++.
For machine learning you have the pytorch C++ API: https://pytorch.org/cppdocs/
For machine learning you have the pytorch C++ API: https://pytorch.org/cppdocs/
You dont have to use every single feature. Use whatever is required and if the need ever comes, go in depth with the language.
Its about to become way more complex and cooler after c++26 and 29 [with possible introduction of contracts and reflection!]. There is no way to completely learn this language anymore. I am not even gonna try.