If you paid $10k total in fed income taxes for 2021, you are just barely into the 24% tax bracket. It would likely be a good idea to contribute more to your 401k to being that down.
However, once you are down into the 22% bracket, it depends more on your whole picture, but someone who is not and has not been maxing their 401k probably isn't in much danger of a higher tax bracket in retirement, unless you have a good pension lined up.