It is not about “rules rules rules” here…it is about truth truth truth…adultery is adultery. Jesus is very serious about this… as has been the Church since the very beginning…just “being honest.” …and blunt…

(one need to work with ones diocese to get things right…)
Forgiveness is very much at the heart of the Church…but Jesus says one must “repent” …then one can be forgiven …which includes making changes…rectifying things…
Look I do no know the history of your situation. But CA is certainly a good source…so give them a call on the apologist line…they can help with the details…
Keep seeking to rectify things…