"John and Tom are Susan's former/ex-boyfriends" is fine. There's really no difference between "former" and "ex" here, except that maybe "ex-" is more informal.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.