Is It Loyal To Your Spouse If You Cannot Forget A Past Relationship?
I will recommend you to register a session with Dr Shehzad Saleem. He is expert in family matters https://www.ghamidi.org/consultation/
This is no cheating. The matters of heart or emotional matters are not in our complete control. God does not make us accountable for the things we are emotionally attached to but does not lead to some kind of actual sin.