Add a transition time.
When I used to drive home, traffic sucked, but it was actually a useful mental transition time. Being at home all day, then turning off immediately at 5 and transitioning into husband and dad is hard. A little time for transitioning is good.
It’s easier said than done. My wife may have had a hectic day with my daughter, and she sees me home and wants to transition as well. Just recognizing it and talking it out may help.
If that doesn’t work, try building a fort out of blankets and hiding in there for a few minutes before anyone can find you. It’s amazing how a change of space can make you feel. 🙂