These profits only exist because externalities aren’t being internalized. So no, you are not wrong whatsoever - something is very much off.
edit: one of the related stories goes in depth on this:
"Why are BP, Shell, and other oil giants making so much money right now?”
If consumers are relatively price inelastic, then they'll shoulder the cost of the tax.
If consumers are relatively price elastic (sensitive), then they (at the margins) switch to alternatives and then the producers ultimately pay via lower volumes and tighter profit margins.
I think we are seeing what happens when oil increases significantly for a prolonged period - emergence of EVs, switch to heat pumps, etc. etc.