Who should not get the mRNA-based COVID-19 vaccines?

The mRNA-based COVID-19 vaccines, Pfizer-BioNTech/Comirnaty and Moderna/Spikevax, are currently not available for children under the age of 6 months.
Persons with a history of anaphylaxis to mRNA COVID-19 vaccine or its components SHOULD NOT receive the mRNA-based vaccine again. Anaphylaxis is a severe life-threatening reaction with two or more of the following three criteria:
a) Hives or face/eyelid/lip/throat swelling;
b) Difficulty breathing;
c) Dizziness.
Patients with the following high-risk allergic reactions to a previous dose of mRNA COVID-19 vaccine or its components SHOULD NOT be administered the vaccine.
a) Hives or face/eyelid/lip/throat swelling with onset within 4 hours post-vaccination
b) Painful swelling of the inner surfaces of the mouth and/ or large blisters spontaneously occurring at any time after vaccination.
Persons with a history of allergic reactions (including anaphylaxis) to other vaccines CAN receive the mRNA-based vaccine, unless they have a confirmed allergy specific to PEG (which is a component of the mRNA vaccine).
Persons who were diagnosed with myocarditis/pericarditis after a dose of mRNA COVID-19 vaccines SHOULD NOT receive the mRNA vaccines or the Novavax/Nuvaxovid vaccine again.