II Cor. 7:10 For God can use sorrow in our lives to help us turn away from sin and seek salvation. We will never regret that kind of sorrow. But sorrow without repentance is the kind that results in death.
There are two important things for us to know here. One is that sorrow that leads to repentance is good for us. Sorrow is a genuine regret for what we have done against God. It is accepting responsibility for our sins. It is a deep sense of wrong doing. Repentance is a turning away from sin. It is putting teeth to our sorrow. It is seeking to change our ways and thoughts so that they are pleasing and acceptable to God.
It is one thing to be sorry we have sinned, it is another thing to strive to not do it again. Everybody lives with regrets for things they have done or said. However, when sorrow does not lead us to change our ways, it is good for nothing. Sin leads us away from God. It is a path of eternal separation from Him. We do ourselves no good at all by just being sorry we have sinned. God demands godliness in the hearts of His children. There is no way around it. If we truly repent of our sins, we will show it in our lives.
If your heart is right with God, you will experience sorrow when you do sin. You will not be at peace or comfortable in the presence of God. You will seek Christ's forgiveness and help in not repeating the sin over again. You will want to not sin the closer you walk with the Lord.