We have still lot of known fossil fuel reserves. More than we should put into atmosfere in form of CO2.
Coal for 139 years
Oil for 56 years
Gas for 49 years
https://ourworldindata.org/grapher/years-of-fossil-fuel-rese...
This is a bit simplified because high fossil fuel prices also drive inovations in mining, exploration and could increase known reserves.