Answer
(Fatwa: 2473/2059=B/1429)
Divorce takes place in a state of anger as well as pregnancy. When you gave divorce thrice in clear words, then now it will not be counted what intention you had, because divorce takes place without intention too if pronounced in clear cut words. Now she is no longer your wife, both of you should live separately. If you want her back you should have halala sharaee. The born baby shall be yours and will be legitimate.
Allah (Subhana Wa Ta’ala) knows Best
Darul Ifta,
Darul Uloom Deoband