I don't know what the solution is tbh.
I can guarantee that if I asked 10 random cops what the restrictions are of a Class 2 e-bike not more than 1 could answer, but if I asked them to stop people who were going over 30mph on the bike trail they could figure it out.
99% of the people whinging about ebikes have no idea what they're talking about.
There are people claiming in this very thread that kids are modding their "e-bikes" to go "45mph."
The power levels required to push a hybrid bicycle to 45mph is north of 3000W and thus well beyond the capabilities of the motors and battery packs in nearly all electric bicycles. Even the e-motos struggle to hit those speeds; you need a pretty high end, expensive one to do so.
(FWIW buying the bike had nothing to do with environmental concerns, I got it for financial and practicality reasons)