I've seen many people in "right to repair" discussions arguing for legal mandates that every device must have a replaceable battery, for instance. That goes beyond having the right to repair, and into restricting the manufacture of devices.
If we start legislating technical architecture, we limit the possibility of innovation and competition, and we drastically reduce the chances that anyone will ever dethrone any of the current market leaders by building something nobody saw coming.