Struggling as a Software Engineer: Can I Transition to Machine Learning?

I’m a fresher and not confident in my skills as a software engineer—I might even call myself a failed software engineer. I want to change my career path and focus on Machine Learning, but I’m unsure which direction to take. Should I pursue Data Engineering, Data Science, DevOps, or something else?
I’ve started learning ML by exploring models like Linear and Logistic Regression, but the number of models is overwhelming. Do I need to learn all of them to get started?
Any advice on how to approach this transition and build a successful career in ML/AI would be greatly appreciated! I have some basic python and sql skills, done a little bit of EDA related dummy projects, a project in Computer vision and NLP.