American Kennel Club on dogs and hugs:
https://www.akc.org/expert-advice/lifestyle/should-you-give-your-dog-hugs/
"It’s completely natural for humans to hug somebody to express affection. Just as natural as dogs sniffing rear ends to say hello. Of course, people don’t share dogs’ love of sniffing behinds. And to the same degree, dogs don’t share our love of hugs. We speak different languages and use different behaviors to communicate. In fact, misreading your dog and subjecting them to hugs can stress them and even result in a bite. So, although it’s instinctive to hug and squeeze what you adore, particularly for children, it’s important to find other more dog-appropriate ways to show your dog you care.
Dogs Don’t Like Hugs
If you watch dogs interact, you’ll notice they don’t embrace each other. They might pin each other to the ground, but it’s in only one of two contexts: play fighting or real fighting. So, when you hug a dog, they don’t understand what you’re trying to say. In fact, you’re essentially trapping them. They can’t get away from anything that scares them or makes them uncomfortable while in your arms. And as hugging is often accompanied by direct staring and putting your face next to the dog’s, they might also interpret your actions as aggressive or threatening. It’s no wonder they don’t enjoy the squeezing sensation of a hug."