That’s why we abstract the useful code away as libraries, frameworks, etc.
AI is not an abstraction.
AI is not an abstraction.
Back to the original point, though: most software engineering work isn't novel. Most people are working on slightly different iterations of the same thing, but with the aim of different products. You can have completely different products that use nearly the same patterns as most other services.
To put it bluntly: we don't need AI to generate novel code for the vast majority of the software being built.