Once you have purchased the flat, you will not have a legal right to extend the lease until you have owned the property for more than two years.
Alternatively, if your seller has owned the property for more than two years, you could ask them to extend the lease on your behalf and transfer that process over to you during the conveyance.
If your seller agrees to this, you will not have to wait for the two-year qualification process. To arrange this, your conveyancer will need to draft the necessary documents and send them to your seller.