And it's not just the EU. I'm sure that e.g. China and Japan will continue to invest in their excellent public transit infrastructure even when there are more self-driving cars on the road.
Americans have this idea that transit is for poor people, which translates to "it's not important for transit to make money", which translates to "we need to make it illegal for transit to possibly try to make money", so there aren't even vending machines at the platforms. Whereas in Asia they do profitable land development at the transit stations.
Japan's private transit infrastructure is only private in high-very high density environments (inner-city) and subsidized in low-density environments (rural, cross-country). Ultimately private group transit requires population density above a certain threshold to be viable.
We don't have a last mile problem, we have legs for that.
Subways don’t solve last-mile problems or trucking.