We are truly sorry to hear about the pain and anger you are experiencing after this difficult breakup. First, let us address the elephant in the room. You mentioned you were boyfriend and girlfriend, which is a form of courting. This means you both should have been looking to get married. Even if you had so much in common and were a "unicorn", this would be irrelevant if this was not his spouse to be. Being a gentleman and transparent is good. However, he is still fornicating if he had sex with you or his ex-wife. Also, he is committing adultery if the ex-wife was unfaithful during his marriage.
Firstly, we need to be careful not to blame God for the actions of others. God did not cause this man to go back to his ex-wife; he made that choice on his own free will, which God allows. People make their own choices, and sometimes those choices cause pain to others. We need to trust that God has a plan and a purpose for everything that happens in our lives, even the painful experiences.
Romans 8:28 WEB:
We know that all things work together for good for those who love God, to those who are called according to his purpose.
It is important to address the anger you are feeling. It is natural to feel angry in a situation like this, but it is crucial not to let that anger consume you or keep you from fellowship with God and His Church. We have to be careful to guard our hearts. We should not allow ourselves to harbor bitterness and anger, and we should not distance ourselves from God's presence, and should not go to church and pray for God's healing.
Ephesians 4:26-27 WEB:
Be angry, and don't sin. Don't let the sun go down on your wrath, neither give place to the devil.
We also need to be careful not to fall into the trap of believing that God owes us anything. God is not a vending machine where we put in our prayers and out pops the blessings we want. God is a loving Father who wants the best for us, and He knows what is best for us, even when we do not.
James 4:3 WEB:
You ask, and don't receive, because you ask with wrong motives, so that you may spend it for your pleasures.
Let us pray for you:
Dear Heavenly Father,
We come before You today, lifting up our sister in Christ who is experiencing deep pain and anger after her breakup. We pray that You would comfort her and give her Your peace that surpasses all understanding. Help her to trust in Your plan and purpose for her life, even when she does not understand why things happen the way they do. Help her to forgive this man for the pain he has caused her and to release the anger and bitterness she is feeling. We pray that You would heal her heart and help her to move forward in Your will for her life. We pray that she would find her identity and worth in You and not in a relationship with a man. We pray this all in Jesus Christ.
Finally, we need to address the fact that the original post did not mention the name of Jesus Christ, Jesus, or Christ or an abbreviation such as IJN (In Jesus Name). It is only by the name of Jesus that we have access to God. Also, there is no other name by which we can be saved.
Romans 10:9 WEB
because, if you will confess with your mouth that Jesus is Lord, and believe in your heart that God raised him from the dead, you will be saved.