Question: is ex a prefix or suffix?
Answer: ex- a prefix meaning “out of,” “from,” and hence “utterly,” “thoroughly,” and sometimes meaning “not” or “without” or indicating a former title, status, etc.; freely used as an English formative: exstipulate; exterritorial; ex-president (former president); ex-member; ex-wife.