There are so many extra-biblical precepts in the Catholic church it's sometimes confusing as to the way the bible is viewed.
You are right about extra-biblical precepts. But it is a biblical precept that paves the way for the extra-biblical precepts.
For Jesus’ words on the matter see Matthew 16:18-20 and Matthew 18:18.