BMW X3 Lease end advise please

I have a BMW X3 RWD on lease ending soon. It now has 36k miles on it and 3 years old. Excellent condition.

Residual value of the vehicle 27k + taxes, and if I return it estimated payment is around 1k. Current market value of this car is more or less the same as residual value.

I am not much in to cars. Just need one for commuting and long drives once or twice a year. This was the best deal that I was getting at that time because of chip shortage, markups etc.

Help me make a decision. Should I buy off this car? Or should I get a new efficient car (Camary, Accord or similar)?

We are two people in the family and planning to have a kid this year. Not quite sure if I would need an SUV, or sedan would do the job.

I don’t mind keeping my this car, but worried about future maintenance costs as bmw repairs are expensive. But, my mind says that I already paid more than half value of the car and why not own it.

Please share your opinions. Thank you!