Imho, it is important to not only focus on one thing. A jack of all trades often has an easier time approaching a problem and working together with others, because they know so many things. However, when it comes to the implementation, an expert of that one thing will always be better.
That's why I try to do many different things (not only in my professional life), and master a few which are important to me. When it comes to programming, I try to master JS and Rust, but I can also use stuff like PowerShell and Bash a bit, so that I can automate stuff if I have to.