BMW Lease Buyout

Hi - I have a 2021 BMW X3 xDrive with 24k miles and the lease ($590/m) is expiring in August of next year (2024). The buyout price is around $28.5k. The car is great, has new tires, and I don’t drive it too often. YTD I’ve been averaging 354 miles per month. Safe to assume it’ll have around 27k miles on it by the time the lease ends next year.

Right now my plan is to buy a 3-year extended warranty and then just buy the car once the lease is over. I’m thinking I’ll just pay cash and avoid the financing fees.

I have a couple of high level questions:

1) Are there any reasons that this may not be a good idea?
2) Does it make sense to buy an extended warranty or should I just wing it?
3) When’s the best time to buy the extended warranty?
4) Besides tax, what dealer fees should I be expecting to pay for a lease buyout?

Thank you!