A man who worked as a substitute teacher pleaded guilty to sex charges after having inappropriate relationships with three high school students in th…