AI doesn’t replace developers, it just allows developers to write more code. Now more code per developer, but there is still a lot of software that isn’t written due to a skilled developer shortage, so you’ll probably be fine if you are competent. It does limit growth, and a lot of younger kids are going to have to pick new fields to pursue, but many were just in programming for the money, so maybe they can follow their passion instead?