It’s fascinating to see people try to defend the Pope on this. He wasn’t speaking ex cathedra. His context was quite clear. What he said is fairly hostile to the idea of free markets. He even used the straw man formulation of “some people”, which is a lot like “there are those who say ...”. He implies that free markets are controlled, but doesn’t say what would control his preferred alternative. Any entity given the power to allocate resources like the market will be as corrupt as the men running it.
Where markets are more free, there is more prosperity, more inclusiveness, and better material circumstances for the poor.
He really doesn't seem to understand the Invisible Hand. No goodness required.
OTOH, putting power to control the economy into human hands DOES require "crude and naïve trust in the goodness of those wielding economic power."