That is a fairly pedantic point as the whole system is just a circular money flow.Err, no it doesn't - 70% of Network Rail's revenue comes from Government 'Network Grants' - see https://www.networkrail.co.uk/who-we-are/how-we-work/how-were-governed-and-managed/how-were-funded/
Only 25% comes from track access charges, and 5% from property income.
So direct taxpayer funding of rail infrastructure maintenance & renewal costs (based on your figures) would be £3.3bn in 2019 - for a rail transport system that carried 8% of domestic freight tonne-km (roads 79%, water 13%) and 9% of passenger-km (roads 89%) in 2019, based on official government statistics.
That's a huge disparity (about 7 to 1) in maintenance & renewal costs per tonne/passenger km of traffic carried on rail and road...
The railway makes what it earns and anything more it spends come straight from government.
None of this alters the basic economics of rail vs road nor the continual myths about road transport not paying it's way.