AFAIK in many countries there is also the double whammy of heavy electric cars eroding the roadways a lot more, but not paying for the increased maintenance costs with petrol tax.
The road damage from EVs hardly matters compared to HGVs, buses and the biggest vehicles. Road damage is roughly proportional to the fourth power of weight, so cars aren't responsible for most of it. This can be verified by looking at bus stops and invariably the road surface is damaged by the bus stopping and starting there. A similar effect can be seen at traffic lights.
Isn't it funded through general taxation? Income tax, NI, dividend tax, duties, capital gains tax, VAT and so on all go into one pot out of which comes some money for the highways agency (who maintain major roads) and local authorities (who maintain minor roads).