As an example, even as late as the 00s, you could still get a job as a "web developer" where you only made static sites with HTML, CSS, and basic Javascript. First tools like Dreamweaver or Frontpage, and now sites like Wix, made that kind of position obsolete. However, a "web developer" is now called "front-end developer" and is still very much alive, just focusing on different things.
Or another example, there is this nearly extinct breed of people known as "database administrators." You used to be able to get a job as a DBA by just knowing how to set up backup scripts, optimize indexes and set up disk space monitoring. (If you could set up a read replica, you were top-tier!) Now cloud tooling has made all of those things trivial. Yet those same people are now very likely "DevOps Engineers" or "Cloud Engineers" which, again, are in extremely high demand.
You should only feel threatened by advances in tech if your life plan was to learn how to do one thing, then never develop any skills. In the tech industry, that's been a path to failure since the beginning. For most of us, AI will, in the best case, be another tool and allow developers a whole to move onto the next big thing.