Your "best" course of action depends on your unique financial situation and current allocations in Pre-tax vs Post-tax investments.
When you RE, you probably want access to 5-years of living expenses in Post-tax investments or cash. That way you can set up a Roth IRA ladder without having to pay any penalties. Any excess may be best to shove in pre-tax accounts for now because you will probably be paying less in taxes after RE (assuming you live frugally and pull out less than you are earning now).
Personally, I hope to RE in around 4-5 years. When I retire, I'd like to have 1-2 years in Cash Savings and 3+ years in a Taxable Brokerage Account and/or Roth. The rest is in my 401k and Traditional IRA. My yearly income will go from 80k -> 20-30k after retirement so I see it as best to max out the pre-tax contribution accounts now because I think I'll pay less in taxes when I withdraw. Since you and I are still 4+ years out from RE, I think it's smart to just take the tax break now by maxing out your pre-tax 401k/HSA/IRA rather than invest excess into ROTH or Taxable accounts.
https://madfientist.com/ has some good articles on tax optimization for FIRE folk.