While true, that only applies to the rules on the vehicles, e.g. type approval, not the usage.
Usage is ruled on by member states, so the EU cannot overrule N.I. treating pedelecs as motorcycles. Neither can the UK since transport is devolved, though they could strongly influence.
.