The actual scientist doing the calculations in proper LCAs do include this and production of the fuel is a notable chunk of the CO2 running cost of an ICE car (about 25%).
Relevant phrases are "well-to-tank" and "tank-to-wheel" which combine to give "well-to-wheel" numbers.
Relevant phrases are "well-to-tank" and "tank-to-wheel" which combine to give "well-to-wheel" numbers.