In the EU, this may soon be covered by the Data Act [1]. It'd be interesting to see if other continents will benefit as well, similar to how cookie banners are now a global thing.
[1] https://digital-strategy.ec.europa.eu/en/policies/data-act
[1] https://digital-strategy.ec.europa.eu/en/policies/data-act