Spectroscopic characterization of X-ray emitting young stars associated with the Sh 2-296 nebula