I was in a similar position to you. For me it was 20 years but I stay in the church going to Mass but still felt it was wrong and not going to confession telling myself I could confess myself (a priest actually said that!). I always remembered my confirmation when the Bishop slaps you on the face it is to keep you from turning away form the Church and I could not ever do a clean break. Then I had a revelation and started reading old Catholic books. I said ok the Catholic church is correct and I went to confession and it felt like the weight of the world lifted off me. Now I try to go at least once a month and when I can every 2 weeks and sometimes once a week. Every time I go I feel the sins taken from me. Go to confession remember what you can and what you can not do not worry about it all your sins will be forgiven
Now you can go to the parish priest to do this unless you did something very public in condemning the Church then you may then have to go to the Bishop. The priest will tell you
and the priest is not going to yell at you either!
God bless you!