The emissions from the EV are largely because we’ve not yet gotten fossil fuels out of electric generation.
Where I live, the majority of energy contracts are explicitly green, in which the producer guarantees the power was generated by renewable sources (mostly wind, water & solar). That would indeed skew the “greenness” even more.