Social phobia is the older name for social anxiety but is used interchangeably.

Social phobia previously meant fear of performing in public but was replaced by social anxiety that describes a more general fear of social interactions.

Sources

https://www.verywell.com/social-phobia-or-anxiety-disorder-3024447