I'm a backend developer who uses Java an GoLang regularly to write back end systems, distributed APIs, infrastructure, deployment pipelines, etc.

I don't have any knowledge about AI or how to model problems for recommendation systems, or when to use decision trees, versus something else. Is this a skill that I should be actively investing in to not become a dinosaur?

My worry is that in the next 10 or so years, I don't want to end up as a Cobol developer in the world of today i.e., might have a job and good pay, but not being able to work at the next big company or next big idea.