I think most people if not everyone drastically overestimates the amount of attention and judgment people give them.

I think you just gotta remember that the people around you arn't just figures, theyre souls just like your own with their own anxieties. When you feel good about everything going on in general your confidence will come back but in the mean time just appreciate that you usually judge yourself FAR more than others do