I am an actual (senior) software engineer, with a background in ML to boot.
I would start to worry if we were anywhere close to even dreaming of how AGI might actually work, but we're not. It's purely in the realm of science fiction. Until you meet the bar of AGI, there's absolutely no risk of software engineering jobs being replaced.
Go or Chess are games with a fixed and simple ruleset and are very suited to what computers are really good at. Software engineering is the art of making the ambiguous and ill-defined into something entirely unambiguous and precisely defined, and that is something we are so far from achieving in computers it's not even funny. ML is ultimately just applied statistics. It's not magic, and it's far from anything we would consider "intelligence".
I do think we need legislation targeting ML, but not because of "omg our jobs". Rather we need legislation to combat huge tech companies vacuuming any and all data on the general public and using that data to manipulate and control the public.
Also, LOL at "how much code development is straight up redundant". If you think development amounts to just writing a bunch of boilerplate as though we were some kind of assembly line putting together the same thing over and over again, you're sorely mistaken.