If it makes you feel any better I had to recently put a new rear subframe, valve cover gasket, and new instrument cluster in my 2011 Mazda 6 with 153k. All that work (some done myself some not) was around $2,300. In the past 3 years I’ve put $4,000 into the car.
I look at it this way. Can I take the repair cost and buy an equivalent better condition car? If not, I repair. Its inevitable that cars will need repairs as mileage piles on. I prefer $1,500 - $2,000 in repairs per year than $500 car payments every month.
I believe the math typically shows it’s almost always cheaper in the long run to repair a car vs replacing it. Depreciation and insurance costs are a killer.
If you don’t like the car and can afford it then get something different. If you like the car then repair it.