The Bible says that repentance is a gift from God (N.B. actual repentance, not some supposed "ability to repent").Also notice this. What you're reading about in Ez 36:27 was speaking of the time when men would receive the Spirit of God into their lives. The curtain of the temple when Jesus died split from top to bottom meaning God was no longer going to be in such physical places but take up is abode in the hearts of men. There is no such thing as, "I will put my Spirit when you" without men choosing to do what's said below,
“Repent and be baptized, every one of you, in the name of Jesus Christ for the forgiveness of your sins, and you will receive the gift of the Holy Spirit. This promise belongs to you and your children and to all who are far off—to all whom the Lord our God will call to Himself.” Acts 2:38
He did not force them to do these things. He did not make them do these things. They had the free will choice yah or nay as to whether they would.
2 Tim. 2:25, 26 (WEB)
25 in gentleness correcting those who oppose him: perhaps God may give them repentance leading to a full knowledge of the truth,
26 and they may recover themselves out of the devil’s snare, having been taken captive by him to his will.