OEM Glock extractor is the fix for 90% of ejection issues. Aftermarket extractors often cause more problems than they solve. From the bench, I replace extractor springs first, then the assembly if needed.
Related Guides

Glock Style
The Ultimate Glock Troubleshooting Guide for Gun Owners Who Want Peace of Mind
Fix Glock feeding, stovepipes & trigger problems with advice from 40+ years firearms experience. This guide shows exactly what to do