For an electric bike to be legal in the UK, it must come with a pedal-assist motor and have a maximum power output of 250 watts. The electrical assistance must cut off when it reaches 15.5mph / 25kmph, and it cannot be ridden by anyone under the age of 14.
read more about electric bikes here https://travelworldhub.com/how-does-electric-scooter-work/