I wouldn't worry about being hassled by the police, what I would be worried about is the drivers of cars. They see a bike and they expect it to be traveling at a certain max speed (electric or not). On an ebike that is traveling considerably faster than they are used to, bad things could happen. It was this thought that made be put the brakes on getting a more powerful and faster bike.
I live in Albuquerque, and we have some notoriously bad and reckless drivers. Whatever you expect them to do, they will probably do the opposite. There are tons of white bikes on the sides of streets w/ garlands on them. When I first moved here I thought "oh, cool. They have art bikes here". Only later did I understand that these are ghost bikes, and they all have the birthday and deathday of the rider that was run down at that particular location.
I was almost killed a month ago by a student near the university that was looking straight at me and continuing to turn right at me in the middle of an intersection. Only when I yelled at the top of my lungs did he wake up, and then he turned even more towards me before catching it and going around me. I thought I was dead for sure. There was zero time to do anything defensive w/ this truck headed directly at me and head on. The next day I was at the same intersection waiting for the light to change and I looked to my right only to see a ghost bike. Some guy had been killed a few months ago right where I was.