Read Matthew 18:15-17 and Matthew 18:19-20. It's about church discipline and the leadership having the right to make the final decision about the church's stance with regards to a person. Matthew 18:18 objectively has nothing to do with confessions.
Meanwhile, 1 John 1:9 says "If we confess our sins, he is faithful and just to forgive us our sins, and to cleanse us from all unrighteousness."
So the verse to go to for confessions is 1 John 1:9. Also James 5:16 says confess your faults one to another. Not the same as sins. 1 John 1:9 handles confessing sins, it is to be done to the Jesus Christ the Son.
I thought we were talking about confessions and forgiveness of sins. In the OT they had to offer burnt sacrifices by the levitical priest. In the NT we go through Jesus Christ the high priest after the order of Melchisedec.
Again, Matthew 18:18 has nothing to do with confessions (there is no mention of it) or with God forgiving sins. It has to do with whether the church body will forgive something or not. And like it says in Matthew 18:21-22,
Then came Peter to him, and said, Lord, how oft shall my brother sin against me, and I forgive him? till seven times?
Jesus saith unto him, I say not unto thee, Until seven times: but, Until seventy times seven.
It's church discipline exactly as we've explained about Matthew 18:18.
He also said "them that are without God judgeth" in 1 Corinthians 5:13. Again, dealing with church discipline, not about confession or about God forgiving sins. There is no mention of that. 1 John 1:9 does mention confession however.
If we confess our sins, he is faithful and just to forgive us our sins, and to cleanse us from all unrighteousness.
Now you are even denying 1 John 1:9 which I just quoted above. We absolutely have the right to confess our sins to Jesus Christ the Son and he is faithful and just to forgive us our sins.