Very hard to imagine that's remotely possible in the near future. The energy density would be astronomical. No reason pro-racing vehicles couldn't do battery swaps in about the same time that a pit stop currently takes. Heck, make the driver compartment clip onto a brand new skateboard with fresh batteries and tires.Will revisit within 18 years. I don’t think it will be done by charging batteries in pitstops, though. Endurance racing is one of the very few advantages petrol refueling has over electric vehicles right now. It should be one of the last hold outs (ignoring long distance air transport too). I think 18 years will be somewhat close.
Maybe a battery pack that can go the full race distance without recharge... I will have to think about feasibility of that some more. While maintaining over 200mph race average too of course...
Of course AI will soon enough make human drivers a joke.