Thing is, the ones who use ai to code large segments of code, don't usually know how it works in sufficient detail. Even the block diagram is done by ai with little oversight. The fix is simply to ask the ai to do over.
I ask the bizfolks: would YOU allow a guy in a suit with no prior engineering knowledge, but with an ai design the structural elements for a bridge for thousands of vehicles a day? So why would you allow that when developing software that is critical for handling your enterprise data and finances?