Good luck with that! Even the EU hasn’t broached that subject.
Most of those folks make their money on consumables anyway, so then the manufacturers would Jack up the price on the main product and blame the legislators.
I'm OK with sleazy companies pricing themselves out of the market if that's what it takes to prevent rent-seeking "ecosystems" imposing vendor-lock-in by making their "too cheap to be true" loss-leader products require esoteric consumables.
Plenty of states have active Right to Repair legislation happening right now. It's definitely on some people's priority list and good legislators make time for important issues.