2006 is not that long ago.
Here is something that is in the future for the most challenging 24 hour race:
https://au.motorsport.com/lemans/news/how-le-mans-is-using-grape-residues-and-hydrogen-to-drive-a-sustainable-future/10479840/
Toyota has a car that could have been ready this year, but rules have changed and hydrogen may not be used in the long race before 2026 -27, but still will be evolved by TotalEnergies and probably will be racing this year in shorter races.
It is really well explained why batteries is not future for delivering power to cars.
I still hope to last long enough to get a hydrogen car.
https://www.designboom.com/technology/toyota-gr-super-sport-concept-15-01-2018/