It could be that he's acting well for his caregivers and then letting all his emotions out around you. I'd stay calm when he hits/pulls hair , to not encourage the behavior
i agree with what elaine said except i wouldn’t really say he’s “upset” with you necessarily? but he probably misses you and is just getting out all of the little negative feelings that he’s had throughout the day that he’s been bottling up around others. you’re his safe person to vent to. also i was the same way with my mom as a toddler. she wrote in a little journal and she would write about how i would push her away and cry around her and she felt like i didn’t like her. i would just give him extra love and comfort when you get home from work, show him how much you missed him too, ask him about his day (even tho he probably won’t tell you much😂) and try to be patient and show him that you’re his safe place to feel all his big feelings
It’s very common. Look up ‘After-School Restraint Collapse’ (I know he’s not in school yet but it’s the same principle). He’s been keeping his emotions in check all day then finally letting them out when he’s with you, his safe space x
Little one may have attachment issues/behaviour from primary caregiver (you) being away. Hence the lashing out when you return as he’s upset with you. Maybe read up about attachment theory - babies need to feel secure and build trust etc.