Boris Johnson had every right to be married in the Catholic Church.
While the optics of Boris Johnson's marriage in a Catholic church this weekend suggest a double standard, in fact the church seems to be treating him the same it would any divorced Catholic seeking to remarry.
https://www.americamagazine.org/faith/2021/05/31/boris-johnson-marriage-catholic-annulment-240768