If we confess our sins, he is faithful and just to forgive us our sins, and to cleanse us from all unrighteousness. 1 John 1:9 KJV https://bible.com/bible/1/1jn.1.9.KJV
Not only by confession is your relationship with God restored but you are forgiven. You don’t need a priest to confess your sins to, God already knows what you have done. He wants to know if you are confessing out of tradition or because you feel convicted that you need to repent?
God loves you and He doesn’t want anything to come between you and Himself.