The results showed that YTHDF2 possessed the highest risk weight, followed by METTL3, suggesting that the METTL3–m6A–mRNA/lncRNA–YTHDF2 axis might play a vital role in the progression of EM. Here, METTL3 is linked to erythema multiforme.