This EU law banning unlocking story was untrue. The publication posting it retracted it in a subsequent story without updating the original.
1)
2)
The claims they cited were AI generated which they admit in the follow up story.

XiaomiTime
EU kills Android bootloader unlock starting August 1 - XiaomiTime
Just days ahead of the new rules, Samsung quietly removed the bootloader unlock feature in its OneUI 8 update. Clearly, they’re getting ahead o...

XiaomiTime
Don’t panic: EU isn’t ending bootloader unlocks anytime soon - XiaomiTime
There’s been a significant amount of noise circulating online lately about the European Union’s Radio Equipment Directive (RED) and its suppose...
