best number ive read in recent years was we have up to a few hundred years worth of oil to use, assuming that we will invent our way out of a lot of the things we currently use oil for in excess.
the realistic estimates ive read indicate that since we are only using more oil year after year, we could run out of oil (in the practical sense) within ~50 years.
this is based off of literal executives from companies like BP, the same ones that have gone to extreme measures, like drilling deep into the ocean VS setting up a spicket on land.
humans have used around 1.3 Trillion barrels of oil in total.
no matter what, this is not long term sustainable.