I'm sorry you're struggling with social anxiety too. I dealt with it and low self-esteem as a child.
Actually what cured me was taking anti-depressants. I am not shy at all anymore. Not saying that will necessarily work for you. It's just what worked for me.
Also, I don't know that there is a such thing as being "objectively ugly" The other day I saw something on the news about this woman from France who was voted the most beautiful woman in the world. So I looked at the picture, and I did not find her attractive at all. Her face was symmetrical, but the corners of her mouth turned down, so it looked like she was frowning all the time. Apparently almost everyone else finds her beautiful, but I do not. So I highly doubt everyone else in the world thinks you're ugly. A lot of it is probably low self-esteem.