Best strategy is probably to buy a new or very low mileage car brand with very good build quality in 2029, and then treat it like your new baby with cleaning/servicing and how you drive it.
Should keep you going until 2050 at least

.
That said, I think the 2030 ban is a pipe dream and will inevitably end up being extended.