In 1999 I bought a used, I think 97 or 98, Dodge Ram 1500. It only had 20k ish miles. I purchased an extended warranty with the truck. Less than a year later the transmission has been replaced, the front diff had been rebuilt and the catalytic converter was replaced. I remember seeing the invoice for over $4k for one of the items and I paid for fluid and gaskets. The dealership took that truck back and let me pick another truck on the lot. I picked a 99 Dodge Ram and drove that truck for about 3 years until as I was approaching 90k miles the transmission started to slip and it had also had some diff work. I immediately traded it in. (That's where my disdain for Dodge/RAM came from)
Since then I've purchased 2-3 new vehicles and 1-2 used. I've bought an extended warranty for each one and have had to use it one other time for sure that I remember. So, in total I'm 3/6-7 or so in being thankful I puchased a warranty. Each time the warranty paid for itself with the needed repairs.
I'm at a place now where I can afford the peace of mind, so I purchased the extended warranty for my GMC when I bought it new in 2021.