erstwhile
Definitions
Former; of times past.
Previous; having been at an earlier time.
Examples
The erstwhile rivals decided to put aside their differences and work together on the project.
She greeted her erstwhile friend with a polite nod, though they had not spoken in years.
The building, an erstwhile factory, has been converted into a modern apartment complex.