The french have a phrase for that: 'L'esprit de l'escalier', which translates literally as 'the wit of the staircase'. Happens to us all.
I'm rather older than you but share your self-doubt, self-criticism and introvert nature. I hate parties and places where I have to make small-talk - but...