It is not recommended to bring a male dog back immediately after a female gives birth. The female will be protective and may be aggressive, she is under stress, and there is a risk of accidental breeding.
It is generally recommended to wait at least 6 weeks before reintroducing the male. Reintroduce slowly through supervised encounters, controlled interactions in neutral territory, and positive reinforcement. Consult your veterinarian for personalized guidance.