I've never gotten a flat on my front hub ebike (Schwalbe Marathons likely deserve all the credit). But I rode that bike for a year or so with the properly sized socket and stubby ratchet in my trunk bag, only to one day realize by accident (while at home thankfully) that I instead needed an open end wrench to loosen the nuts of the front hub in order to get the wheel off, since the hubs power wire goes in through the end of the hollow core axle, and the socket I had been carrying around would never have worked because of that power wire.