This. People keep conflating software engineers with software programmers/coders, but there's more to software development than just coding the functions and there are more responsibilities software engineers have compared to the latter. When making a new software project, there are many factors to consider than just the functional aspect of your software, like non-functional aspects such as maintainability, security, compatibility, performance, etc., and building test cases to ensure the stability of the project as you add or modify it.
During the initial phase of the development process you also need to carry out requirement gathering and analysis, feasibility studies and how to keep your client's expectation/demand of the project from a simple product landing page to the next Amazon + Google + Netflix website. How is the AI going to keep the project within reasonable and realistic scope and communicate with the client, because from my experience with using ChatGPT it have a tendency to agree to everything and hallucinate answers that is not correct.
The two above is just some of the few complexities when it comes to develop a proper software product, I just don't see how you can put 100% trust in the AI to full fill all the responsibilities of software development. Which is why I don't see software engineers (which I am a part of) losing all of their jobs to AI in the future, but I do think it would significantly improve productivity and speed of projects as it gets developed in the future, and will impact the job market for programmers considerably.