half the jobs I've had in my career involved working in a programming language that I had learned (or re-learned) in a week prior to the interview, to a degree of competence that I could talk intelligently about non-trivial aspects of the language, and demonstrate non-trivial tasks idiomatically. these languages were C#, Ruby, and C++.
and so if we ever get to the point where "ai" actually will "leave me behind", I'll just pick up "drooling into gpt for dummies" or whatever the week before I actually need it.
If you have a fediverse account, you can quote this note from your own instance. Search https://mastodon.gamedev.place/users/aeva/statuses/116139646632130717 on your instance and quote it. (Note that quoting is not supported in Mastodon.)