Software is covered around copyright law, which is different than right to repair. I'm fine not owning the software my Tesla runs, nor having access to the source code, but I agree that legislation should require Tesla provide tooling that allows for diagnostics and canbus control for repairs (such as for issuing commands to the powertrain and ancillary systems).
AFAIK Tesla only provides access to service manuals in Massachusetts which has a right to repair law. Online subscription that’s just $30 per hour or $3000 per year.