Complete healing of mycoplasma pneumonia is the rule. You will need at least 2 weeks of antibiotics to kill the infection, and your chest x ray may take 6-8 weeks to clear.
Make your comeback cautiously, and pay attention to how you are feeling. Even an atypical pneumonia like mycoplasma is a significant setback training-wise. Honor the time it takes to get back to form.