I take this to mean if you focus on the fundamentals of AI/ML instead of just learning how to use the newest framework you will always be able to find work.
Even if this area does become highly automated you will need to be people who understand how the tools work, what sort of problems they solve, and how to identify these problems.
No one knows for sure, but I would be surprised to see people who understand AI/ML fundamentals not being highly useful in the future.
The same thing could happen again and another technology could sweep ML/AI aside. ML/AI itself is not a predictable "career path" like chemical, electrical/petroleum, or mechanical engineering are. ML/AI is more like the Wild West: maybe you're a wildcatter who has a new idea, thinks he can find oil and strike it rich.
If you want a predictable career path that covers most of the same subject area then choose statistics, mathematics or data science.
Will there be long term career options in ML/AI? Maybe. Most probably for a while. Long term, probably few.
Will those skills be transferable to other technologies? Who knows.