To be clear, Bergoglio did not speak against "suicide", but "assisted suicide". He has not taught the traditional Catholic teaching against "suicide".
When Italy was considering a living will bill in 2017(which, shockingly, overwhelmingly passed) Pope Francis was quoted as saying "It is clear that not adopting, or else suspending, disproportionate measures means avoiding overzealous treatment," and making other remarks about the right to decline "heroic" treatment. This is perfectly sound moral theology, but the bill wasn't just upholding opting against unbearable, futile treatment --- it was OK'ing also the cessation of nutrition/hydration, which results in death as intended.
So the pope said things which are objectively, morally true, but did not speak to the salient point at hand, which was intentional death by starvation.
Supporters of the bill brandished his quotes, which helped push this terrible bill over the top.