How could you legislate that without restricting novel developments in car technology? Requiring the electronic control and diagnostic systems to speak an owner-accessible protocol should give a lot of the benefits while still allowing legitimate complexity.
True in the general case, but in a few specific cases like swappable battery form factors and interface protcols for EVs, government-mandated standards could catapult the market ahead by decades.
If those standards were well-thought-out. I know, I know, good luck with that...
Sorry, but this would be an innovation, not a subversion of it. I not have the answer, but know it's possible; also know it goes against the interests of the auto industry.