There is mixed evidence on the impact of AI on developer jobs, but on the balance it seems that to the extent AI is impacting dev jobs, it is mostly the junior roles that are being affected.
There is even some evidence that suggests senior roles are more in demand (and getting correspondingly higher pay too) which gels with the common observation that senior workers are more effective at managing the AI which is doing the work of (and hence displacing) junior workers.
Asking a chatbot or Google AI overviews should surface relevant studies.