That’s fine. But who grants it? It says in the verse that it’s granted.
2 Tim.2 is very applicable to what we are trying to do on this thread or at least what we should be trying to do.
In 2 Tim. 2: 25 we have “…God will grant them repentance…”, but in the context of “…Opponents must be
gently instructed, in the hope that God will grant them repentance…”, with this whole section on: “How to lead those who have drown the wrong conclusion to the truth”. Paul is teaching spiritual leaders in the church, including Timothy, how to handle sincere misled stubborn false teachers gently to the truth.
It is said: “You can lead a horse to water, but you can’t make him drink”, so if we do everything right that doesn’t mean he/she will automatically repent. I have lived long enough to have personal examples, but it goes like this: I gently warn a person of the dangers of their behavior, hoping and pridefully expecting them to immediately change (repent), but they do not, so I leave frustrated. Later I see the person and huge changes have taken place they have become a spiritual giant in the kingdom, but it was more do to their own continues wrong choices that brought them to their senses and they considered other alternatives.
God has set in place teachers, situations, aging, and consequences that cause all mature willing individuals to come to their senses and choose to accept God’s help, but not all will accept His help. So, if any person repents it is because of God, but do not blame God if some do not repent, because God provided the same opportunity for them.
Back to 2 Tim. 2:25
The “God will grant them repentance” in the KJV you have “If God peradventure will give them repentance”, not that the KJV translation is better but follows more the Greek.
I cannot explain it better than Albert Barnes so here are his notes on this section of verse 25:
If God peradventure will give them repentance, ... - Give them such a view of the error which they have embraced, and such regret for having embraced it, that they shall be willing to admit the truth. After all our care in teaching others the truth, our only dependence is on God for its success. We cannot be absolutely certain that they will see their error; we cannot rely certainly on any power which argument will have; we can only hope that God may show them their error, and enable them to see and embrace the truth; compare Acts 11:18. The word rendered "peradventure," here - ́ mēpote - means, usually, "not even, never;" and then, "that never, lest ever" - the same as "lest perhaps." It is translated "lest at any time," Matthew 4:6; Matthew 5:25; Matthew 13:15; Mark 4:12; Luke 21:34; "lest," Matt, Luke 7:6; Luke 13:29; Luke 15:32; "et al.: lest haply," Luke 14:12; Acts 5:39. It does not imply that there was any CHance about what is said, but rather that there was uncertainty in the mind of the speaker, and that there was need of caution LesT something should occur; or, that anything was done, or should be done, to prevent something from happening.
It is not used elsewhere in the New Testament in the sense which our translators, and all the critics, so far as I have examined, give to it here - as implying A hope that God would give them repentance, etc. But I may be permitted to suggest another interpretation, which will accord with the uniform meaning of the word in the New Testament, and which will refer the matter to those who had embraced the error, and not to God. It is this: "In meekness instructing ' those that oppose themselves' ( ̓́ antidiatithemenous ) ' lest' - ́ mēpote - God should give them repentance, and they should recover themselves out of the snare of the devil," etc. That is, they put themselves in this posture of opposition so that they shall not be brought to repentance, and recover themselves. They do it with a precautionary view that they may not be thus brought to repentance, and be recovered to God. They take this position of opposition to the truth, intending not to be converted; and this is the reason why they are not converted.