This is exactly how people give separation anxiety to their dog. Your dog is better off (and by extension, so are you) being trained that your absence is no big deal. You can’t do that if you’re giving them big excited greetings and apologetic goodbyes. It’s advised by every competent trainer in the world to come and go with as little drama as possible. No greetings. No goodbyes. No salutations at all.