Would stratum v2 be a solution for this? What if a mining pool isnt allowed to use stratum v2? Sry this may be a stupid question but i dont know anything about this protocol.
Discussion
As you said, Stratum v2 is just a protocol, like Bitcoin.
Making stratum illegal would be the same as making Bitcoin illegal, which is probably protected under free speech laws.
Even then, it's nearly impossible to enforce.