Hugging seems to have an uncanny effect on human beings, it releases anxiety, promotes mental health, and makes you feel great. As a guy with his most significant other living halfway around the world, I certainly do know the feeling! But there are far more things that can bring the exact same feeling of gratitude, uncanny peace, or being loved.
For me, the connection to a number of online friends also gives me an intriguing feeling of connectedness. I never met them in real life, and probably never will unless the world becomes very, very different, but I do get the intuitive feeling that they can be trusted. Whereas other new "friends" immediately get up to behavior that triggers my intuition to keep my distance!
Like for instance the endless users on X who do nothing but ask single line questions to ellicit a response. It may work for getting comments, likes and reposts, but is a question an actual creation? Creative endeavours often result in a plot twist, but they are often not quite what you'd expect. But that's life for you, surprises and all!