61 x F1 drivers have died, including probably the most famous, Ayrton Senna, directly at the hands of F1 racing & mostly through crashing. Last being in 2014.
https://www.f1-fansite.com/f1-drivers/list-of-formula-1-drivers-that-died-racing/ .
The billions spend in car design and research and safety equipment kind of helps keep that figure down though, but doesn't eliminate it.
Footballers/ Soccer players by contrast don't have that luxury, many of whom go on to develop football related injuries or conditions like Dementia or broken/ torn body parts that end careers.