Let’s unpack what you said...
“The same is true for sola scriptura.”
Scripture declares it is sufficient for salvation and for maturity. It declares it is inspired Truth from God. All other truth claims are judged by God’s Truth.
“There is then no problem with the Church officially defining a doctrine which is not explicitly in Scripture”
Sure there is. If there is no Scripture that reveals it as true, there is no basis to believe it.
“so long as it is not in contradiction to Scripture.”
It is wrong if it contradicts Scripture.
It is wrong if it adds what God revealed, as if it is equal.
See my post #51.