You’re confusing the work of the Holy Spirit to lead and guide, with doctrine which explicitly and exclusively comes from Scripture (2 Timothy 3:16).
In this case, the Catholic Church is espousing doctrine not in Scripture, something Jesus specifically condemned (teaching for doctrines the commandments of men Mark 7:7).
Bass ackwards.
Before there was the New Testament, there was doctrine.