The Poison Apple series (Scholastic, middle-grade horror) begins with:
#1: Once Upon a Broken Heart by Stephanie Garber (2021).
Followed by:
Novella: The Ballad of Never After (between books).
Note: This is distinct from Garber's Caraval universe but shares tone.