Well, if neither one of them is assuming exclusivity, and you're all practicing safe sex, you're not really doing anything wrong. There is no problem in theory, but like any other FWB situation, there is always the chance that expectations differ.
BTW, your ex really has no right to be hurt that you're seeing someone else. No matter how serious it is.