In Denmark, I’m part of a union which publishes salary stats for every possible job title, management responsibility, education, in a fairly convoluted matrix. Still, this allows me to easily negotiate with companies and see how well they pay. There might be something organised by the government, but I’ve never had a need for it.
You didn’t get laid off because you discussed your wages.
You were laid off because you couldn’t keep your cards close to your chest and told the company y’all had been discussing wages.
Having the right to discuss it doesn’t mean you should do it in front of the boss.