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

EDC Gear Reviews
Kwick Strike Review: Fast Access Comes With Tradeoffs
Real-world testing of the Kwick Strike vehicle firearm storage device. Sub-second access verified in compatible vehicles, but fitment and security limitations are significant factors.

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