 Feeling bad about sin can actually be a good thing. In fact, in one place it's called godly grief, 2 Corinthians 7.10. For godly sorrow produces repentance, leading to salvation. Not to be regretted, but the sorrow of the world produces death.