Pacha Pope

However, canon 194 adds this restriction: “The removal . . . can be enforced only if it is established by the declaration of a competent authority.” Only the pope can remove a cardinal from office or dismiss him from the clerical state in the case of heresy or other grave crimes. If he does not do so, the unseemly prospect arises of a cardinal, excommunicated latae sententiae due to heresy, voting in a papal conclave.
https://www.firstthings.com/web-exclusives/2023/02/imagining-a-heretical-cardinal