Hol up, you left your retirement fund in the hands of your employer? You didn't diversify and invest in the broader market? Most plans make you hold some for a period of time, every single plan offers a way to get out of being fully invested in one company. That's insane.
Employee stock purchase plans usually don't match, they just offer a 10-15% discount. I honestly have no idea what they're talking about. 401k isn't held by your employer, and ESPP doesn't match.
Ten shares per paycheck? Wow, that's an amazing benefit, assuming you can sell. That is basically doubling your money. The best one I've ever had was a 15% discount off the lower price between the start of the quarter and the end of the quarter. If the stock was moving upwards I'd hold it, and if it was moving downwards I'd just sell it immediately for the free 15%.
I'm not saying it doesn't happen, but I've never heard of an employer that requires their 401k match to be invested in the company. Everywhere I or my wife has worked you could put it in any fund available with that 401k plan.
Even so, every company I've worked for allows withdrawals at various times for parts of the fund. I need to keep a certain % of mine in company stocks, I move the overflow asap into a different fund to protect myself.
If your retirement plan absolutely has to be locked into your employer, you have a rather large risk to yourself there and I'd potentially consider finding a new employer if I ended up there. Too many companies disappear to be comfortable with that.