Not sure I buy that. Oil will still be in demand as a chemical feedstock. In fact, there are already people saying that oil is too precious to use as a fuel.
If we have plenty of energy anyway we can just make exactly what we need, no need to drill for a mix of pot luck hydrocarbons. If we don't have enough energy anyway then we're burning hydrocarbons to get energy and we might as well use them as a feedstock too.
Substitution is highly impractical in the short term but in a conversations of decades/centuries it's significant. Venezuela's reserves alone could run the world's petrochemicals for 60 years (Gemini) so it's a realistic perspective. Together with other proven reserves we could be okay for centuries.
Recycling is sometimes an option too.