In Paul’s first letter to the Corinthians, he was very direct about confronting sin in the church. Although his letter made the church sorrowful, Paul didn’t regret it because their sorrow caused them to repent.

The Bible says:
Godly sorrow brings repentance that leads to salvation and leaves no regret, but worldly sorrow brings death. (2 Corinthians 7:10 NIV)

Don’t be discouraged when the Holy Spirit uses a man or woman of God to correct you. Having our sins confronted is uncomfortable, but in the end it leads to peace with God and spiritual maturity if we repent.

Hebrews 12:11 NIV
No discipline seems pleasant at the time, but painful. Later on, however, it produces a harvest of righteousness and peace for those who have been trained by it.

Hebrews 12:5-6 NIV
And have you completely forgotten this word of encouragement that addresses you as a father addresses his son? It says, “My son, do not make light of the Lord’s discipline, and do not lose heart when he rebukes you, because the Lord disciplines the one he loves, and he chastens everyone he accepts as his son.”