Here the sequence:
1. The man commits the public sin of manifest formal heresy.
2. The man loses membership in the Church ipso facto.
3. The man loses office (and ordinary jurisdiction) ipso facto.
4. The man is excommunicated latae sententiae.
5. The man is declared by the Church to have incurred the penalty of excommunication latae sententiae.
6. The loss of office, that already happened ipso facto in No. 3 above, is enforced by the Church.
7. A new man is elected/selected to office.
Nos. 2 and 3 are a direct and immediate consequence of No. 1, and concern the Divine Law.
If we were to grant that Jorge Bergoglio was validly elected in 2013, and committed the public sin of manifest formal heresy some time during his pontificate, we would be awaiting the execution of No. 5 at this time. However, the office is already lost with no claim to it on his part.