First, there's no spring release that ejects the S-pen.
Second, it's impossible to insert it backwards. They corrected that a year or two ago.
What most likely happened is the clicker on top of the S-pen broke somehow. I can't think of any other way it wouldn't come out, unless you had some gunk on the S-pen itself the last time you inserted it into your phone.