Does anyone know what this could be on my dog?

She keeps licking / smelling it and running away with her head down like she’s scared of it. I think it’s something that’s hurting her but I can’t tell what it is?? Right next to her leg / tail area