Yeah I think when you hear those stories of cops harassing ebikers, I think they are harassing those guys with highly modded, high power bikes that can go 80km/h on throttle hooning around like motorbikes.
If you're behaving like a regular cyclist, a really fit, powerful cyclist :) you should be ok.