1) Does it work with a complete cleaning and CCI MiniMag 40 Grain Round Nose High Speed ammo? If so, use other ammo at your peril. If not, something is wrong.
2) Some of the non extraction is actually weak ammo and/or extraction, non ejection, and back into the chamber. Or with Remington, cases splitting. Or with Federal, soft brass expanding and sticking.
3) Turn the rifle over, muzzle away from you, and look up the magazine well with a flashlight. For the 15/22 to eject, the extractor stem needs to be nearly touching the center feed rib of the bolt. It also needs to be nearly touching the under side of the bolt. The center rib is the thing that feeds the round out of the magazine. The underside of the bolt is what you are now looking at. If it is not in the right spot, very gently bend it to the center and bend it upward with fingers or a small flat driver through the ejection port.
4) If it still won't run, S&W warranty will fix it.
5) If it has a bright, not blued metal and not painted blue metal, spring, it is a stiff spring and will only function with zippy .22LR HS such as the MiniMag or Viper. If it has a sky blue spring, it is a weaker spring and it will function with milder .22LR HS ammo such as AM. Eagle 40 grain RN HS. The old ones from the first year's production will be converted by S&W to run on normal .22LR HS ammo if you send it back to them.
6) Good Luck.