The 18-year-old accused of killing three children in a knife attack at a Taylor Swift-themed dance class is due to appear in court.