Personal anecdote: I'm still driving the 2011 BMW 335i that I bought in 2014. It now has 265,000+ miles.
The key with owning a BMW is to do all of the maintenance yourself. That brings the cost of ownership back down to planet Earth.
I've replaced the water pump twice, high pressure fuel pump once, and the radiator. Plus a few odds and ends.
If I had paid the dealer for this work, I'd be totally in the hole.
One thing I will give BMW is that they know how to design a chassis. The car has all of the original suspension components and the steering is still as tight as the day I got it. No clunking, no rattles, no bouncing, etc.