This is sometimes called "the right to interoperate", similar to the right to repair movement. Unfortunately it has been less successful than right to repair so far.
https://www.eff.org/deeplinks/2020/07/legislative-path-inter...
https://www.eff.org/deeplinks/2020/07/legislative-path-inter...