I’m facing the same issue with my F-150. It’s a 2004 with a little over 200k miles on it, it’s a basic super cab truck with very few options other than air conditioning. A direct replacement for it is north of $70k.
It’s of the age where I can still do most of the work on it so I will repair it as long as I possibly can. Fortunately, we don’t have rust problems here in the southwest.
I’m in that same spot with my 2000 Toyota Avalon. I inherited the car from my folks, so it has very low 85K miles. I was hoping to drive the thing until ICE engines become prohibited by law, but it overheated and the radiator repair guy said the heads probably got warped as it’s spitting a bit of liquid in the exhaust and misfiring once in a blue moon, so it’s asking, nicely, for the moment, for a head job. Ugh. $4K+. I guess if I cost-average that into the ten years over which I haven’t had to put any money into it, it’s nominal. But still painful, still more than what the whole car is worth, and easily a hole I could step into buying a replacement. Ah well. Maybe I join AAA and keep Uber on Speed-dial.