JWST/NIRSpec spectroscopy of pre-main sequence stars in the small magellanic cloud