 Notice godly sorrow itself is not repentance. Just sorry I did something is not repentance. But godly sorrow, understanding that what I did went against what God wanted me to do. It produced a godly sorrow in me. Here in Romans 2 verse 4, the goodness of God leads to repentance. In 2 Corinthians 7.10, godly sorrow produces repentance leading to salvation. Then it says not to be regretted.