According to the catechism of the Roman Catholic church at vatican.va...
889 - In order to preserve the Church in the purity of the faith handed on by the apostles, Christ who is the Truth willed to confer on her a share in his own infallibility. By a "supernatural sense of faith" the People of God, under the guidance of the Church's living Magisterium, "unfailingly adheres to this faith."417 891 - "The Roman Pontiff, head of the college of bishops, enjoys this infallibility in virtue of his office, when, as supreme pastor and teacher of all the faithful - who confirms his brethren in the faith he proclaims by a definitive act a doctrine pertaining to faith or morals.... The infallibility promised to the Church is also present in the body of bishops when, together with Peter's successor, they exercise the supreme Magisterium," above all in an Ecumenical Council.418 When the Church through its supreme Magisterium proposes a doctrine "for belief as being divinely revealed,"419 and as the teaching of Christ, the definitions "must be adhered to with the obedience of faith."420 This infallibility extends as far as the deposit of divine Revelation itself.421 882 - The Pope, Bishop of Rome and Peter's successor, "is the perpetual and visible source and foundation of the unity both of the bishops and of the whole company of the faithful."402 "For the Roman Pontiff, by reason of his office as Vicar of Christ, and as pastor of the entire Church has full, supreme, and universal power over the whole Church, a power which he can always exercise unhindered."403
So the Holy Spirit doesn't work God's free gift of grace in the believer's heart in order for them to know the things of God and the truth of Scripture. It is the magisterium and the bishops and the pope and the priests and the Roman Catholic church which declares what Scripture means and what is "infallible."
If so be that ye have heard him, and have been taught by him, as the truth is in Jesus: That ye put off concerning the former conversation the old man, which is corrupt according to the deceitful lusts; And be renewed in the Spirit of your mind; And that ye put on the new man, which after God is created in righteousness and true holiness." -- Ephesians 4:20-24"But ye have not so learned Christ;
Nope.
You have quoted the Catechism of the Catholic Church.
Now there's some real blasphemy.
Of course the Holy Spirit does this. We are to known them through the Church Christ founded as the pillar and ground of the truth, the Catholic Church, protected to this day from error by that same Holy Spirit, just as Got wills it.