I think there is a big mix up between laws/regulations and standards. Each country has it's own standards organizations. The UK has BSI. UK companies and experts sit on BSI, and in turn BSI sits at the various world standards tables. And the folk at the world standards tables adopt and modify national standards and issue them as world/ or international standards.EG, and this is from memory, BS5750, the UK standard on quality assurance in manufacturing was adopted by ISO as ISO 9000. The same goes for near everything. National standards that are considered the best, are often adopted and modified as international.
The UK still has people working on these standards.
What EU directives do, is say what standards are to be used, and stuff about documentation and so on. And the UK lost it's seat at that table because of Brexit. But we do still have to make to the international standards if we want to export. Hence we had to do acts like this.
https://www.gov.uk/government/publications/electrical-equipment-safety-regulations-2016/electrical-equipment-safety-regulations-2016-great-britain
So yup, if the EU says that ISO or IEC standard on whatever is to be used, if we want to sell to them, we gotta use that standard.
I saw a thing recently where Farage said " We will bring back Lbs and ounces". Yeah, that's great Nigel. You do that. But you won't be able to sell any of that to metric countries without meeting the standards and regs they want.
Yup. Brexit was a shitshow. Because while we still sit at the ISO and IEC table etc, we lost our massively important seat at the EU table.
Edit to add. While there was a flurry of new regs and laws in the UK post Brexit. They are actually pretty much identical to EU regs. They have to be. Because for world manufacturers, it will simply not be worth the hassle to comply with both EU and UK if they are drastically different. And it will be the UK they dump, or charge more from.