while oil is important but its days are numbered. the countries are already moving away from relying on it and in the upcoming decades we will see it significantly lose its importance too. that is when countries like Saudi Arabia that rely on oil are going to turn into dust.
Since most countries are moving to green energy the consumption will be reduced but it will take a long time to see that change in the automobile industry as well especially in third world countries but you cannot say that the days are numbered for the oil industry because there is an entire market that rely on Petrochemicals and most of the byproducts are used on a day to day basis and that cannot be replaced because the products range from soap and detergents to paint and plastic to synthetic fibers.