I know it doesn't seem like it to folks who haven't been around for long, but AI and ML is a fad, currently at Peak Hype. There will continue to be AI researchers in a decade, but they will be the people who are in it for the long term. The magpies who are currently swarming into the field will flitter away when the Next Big Thing comes along.
I point this out only because the OP specifically mentions how the treadmill of constant learning leaves you in place in this industry...and this is a great example of how it happens. If you spend your life chasing every five-year fad cycle in tech, hoping for continued relevance, you'll burn out. Moreover, you'll always be at a competitive disadvantage to the 20-something new grad who knows the new shiny as well as you do, and works for praise and pizza.
If you want to specialize, then really specialize. But be prepared to devote a big chunk of your life to it.