بسم الله الرحمن الرحيم
No talaq takes place merely by occurring waswasa in the heart or giving talaq in heart. Yes, if you said the word “mai ne tumay talaq dey” in a way that you heard the word yourself then one talaq rajai (revocable) took place on your wife whether you had an intention of talaq or not. The word of talaq is explicit and it requires no intention. If you want, you may take her back during iddah, you will not need halalah or new nikah. But if the wife experienced three menses after talaq i.e. her iddah was over then she became bayina (separated). If you wish to live as husband and wife then you may do new nikah with mutual consent and live together.
Allah knows Best!
Darul Uloom Deoband
This answer was collected from the official ifta website of Darul Uloom Deoband in India.