Anyone else here charismatic and social until they notice an attractive person walking in the room lmaoo?

I always feel like I can talk to anyone until I notice someone attractive in the environment then I close in and get super nervous. Social anxiety…. Anyone else get that?