There is no one-size-fits-all answer to this question, as the timing and length of your break will depend on a variety of factors including your relationship status, the length of your break, and your current mental and emotional state.
However, in general, it is generally recommended that you avoid contact with your ex-partner for at least six months in order to allow both of you time to heal. If you feel like you can’t avoid contact altogether, make sure to take care not to hurt or anger each other during these interactions.