The greeting of heads of state along with an irregular woman by the Pope hardly constitutes a decree that the marriage is valid.
I don’t doubt that you and Francis think that; but the former Popes, who were Catholics, thought otherwise.