The only bit AI can't replace is probably the need for a 'fall guy' or someone to take responsibility for something. This, however, will obviously not be sufficient to prevent job losses.
there are systems that can very well operate without "fall-guy". example:
A) diffuse responsibility. nobody is responsible. — this is what typical beruactacyl operates in.
B) everybody is self-responsible. end users use AI, they are responsible. this is typical MIT licenses. "use at own risk", literally first statement in any open source.