The Protestant Reformer, Martin Luther said, "When God works in us, the will being changed and sweetly breathed upon by the Spirit of God, desires and acts, not from compulsion, but responsively."
For it is God who works in you both to will and to do for His good pleasure (Philippians 2:13). In our sinful nature, we are not willing to trust Christ (Romans 3:9-11). Our will is corrupted by sin. Upon hearing the gospel of Christ, the Holy Spirit enables us to trust in the Lord Jesus Christ (Ephesians 1:13).
God never does violence to our will (Hebrews 3:15). He does not coerce nor force us against our will. As Luther said, "the will being changed and sweetly breathed upon by the Spirit of God, desires and acts, not from compulsion, but responsively."
The Holy Spirit changes our hearts through the gospel of Christ. The word heart is often used in the Bible to describe the inward person, which is the mind, will, and emotions. To be born of the Spirit means we are transformed in the mind, will, and emotions.
The Holy Spirit leads us to Christ Jesus (John 16:7-11). Never forcing us to come to Christ, but enabling us to trust in the Lord Jesus Christ. That's the goodness of God working in us. The goodness of God leads you to repentance (Romans 2:4).