Or a cat, if you like cats that is, they don’t exactly hug but cats can be very affectionate.
As for human hugs, you certainly won’t get one of those from a computer, only “there in the flesh” people can do that, can you increase your contact with others in some way?
There are bona fide massage therapists who will come to your home to massage, I have been partaking of a weekly massage in such a way for 15 years. It feels wonderful but I somehow suspect it’s not quite what you are meaning when you say “hug”.