Don’t beat yourself up for past sins. That’s Satan’s job.
I John 1:9
If we confess our sins, he is faithful and just to forgive us our sins, and to cleanse us from all unrighteousness.
9 And the great dragon was cast out, that old serpent, called the Devil, and Satan, which deceiveth the whole world: he was cast out into the earth, and his angels were cast out with him.
10 And I heard a loud voice saying in heaven, Now is come salvation, and strength, and the kingdom of our God, and the power of his Christ: for the accuser of our brethren is cast down, which accused them before our God day and night.