First idea: make scripts similar to Liquid multisig backup scheme and embed it into Electrum. But the developer is not limited by this. The code will be publicly reviewed through mediation of HypeCoinNews, Russian Telegram Channel about Bitcoin.
PS, Bitcoin Script example:
From https://min.sc/
// Liquid-like federated pegin with emergency recovery keys
$federation = 4 of [ pk(A), pk(B), pk(C), pk(D), pk(E) ];
$recovery = 2 of [ pk(F), pk(G), pk(I) ];
$timeout = older(3 months);
likely@$federation || ($timeout && $recovery)