Question: what is ex in prefix?
Answer: 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.