Currently in the UK, you can legally buy an e-scooter, but you cannot ride it on a public road, cycle lane or pavement. The place it can be used is on private land. The police will advise you on the law and may ask you to take your e-scooter home if stopped by an officer.
Further information about the use of e-scooters and other powered transporters can be found on the UK Government website.