Sergio Perez had his Red Bull contract terminated late last year, leaving his F1 future in the balance - but that may be about to change.