All perfect praise be to Allah, The Lord of the Worlds. I testify that there is none worthy of worship except Allah, and that Muhammad is His slave and Messenger.
There is no disagreement among scholars over this ruling that if a person utters the words of divorce intentionally by saying to his wife "You are divorced", by these clear words, she becomes divorced immediately regardless of his intention seriousness and degree of knowledge about what is considered divorce in the Sharee’ah and what is not, as established by the majority of the Muslim scholars.
As you mentioned that you divorced your wife before having sexual relations with her, then she became divorced but this is a minor separation (i.e. a revocable divorce and you can take her back). In this case, she does not become lawful to you again except with a new marriage contract. Allah Says (what means): {O You who have believed, when you marry believing women and then divorce them before you have touched them, then there is not for you any waiting period to count concerning them. So provide for them and give them a gracious release.} [Quran 33: 49]
With regard to the divorces which you delivered after the first divorce and before remarrying her with a new marriage contract, they are null; consequently they do not have any impact since after her first divorce she became a non-Mahram woman and no divorce applies to a non-Mahram woman. Therefore, you actually divorced her only once and you cannot remarry her again except with a new marriage contract and in the presence of her guardian and two witnesses, and paying Mahar (bridal gift). We warn you, dear brother, that you should be very cautious about the matter of divorce since the divorce given in joking is effective just as the divorce given in seriousness as proved in a sound Hadeeth.
For more benefit, please refer to Fatwa 82354.
Allah knows best.