Having my HP printer just failed because of something was wrong on the printer head (and replacing the printer head alone costs more than the printer, and is a easy job as it was made to be easily replaced), I'm always mad that a part costs equal or more than the whole thing. Any kind of "locked-in" to repair anything should always be against the law: no one should be allowed to charge more for a part than it charges…
I think that's a dangerous route to follow. I completely agree with right to repair legislation, but I can also imagine a situation where a company makes ten thousand of something and sells it in a year through a retailer, and then keeps replacement parts available for a long time. Warehousing, inventory, service and delivery costs could easily make parts cost more than the original item.
I once went to a lecture given by someone from Boeing. He said that when they use an obscure electronic part in their aircraft, and it reaches End of Life, they buy all the stock they can get hold of, store it in a very secure location, and charge a lot for it. The real value of this part is way larger than the original manufacturing costs would imply. It doesn't cost as much as a plane, but if your plane cannot fly without it, then it's pretty darn close.