What is an ex-president?

An ex-president is a former president - a president who has left office.