You need a freewheel tool to remove the gears, but one with a 14mm hole in the centre, most dont. The DNP one fits.
https://www.ebay.co.uk/itm/DNP-Epoch-Freewheel-7-Speed-11-28T-Nickel-Plated-ebike-electric-bike-rear-cog/153940187855?hash=item23d78cdacf:g:dLcAAOSwAtFexTPS