There are people on here would could give you way better advice than me, I think a basic order for where you should put extra cash would go something like:
1. Contribute to your work retirement plan (at least up to your employer match, if you get some sort of match, but maybe they give you comp time instead?)
2. Pay off any high interest rate debt you might have
3. Max out retirement accounts including beyond employer match
4. Put the rest in a taxable investment account (mostly or all stock market index funds since you are young, more bond funds as you get older and need less risk).
Paying off your mortgage early is fine, but that's super cheap money that would likely do better in an index fund, imo.
Finance bros can chime in a tell me why I'm dumb.