Worm found on my dog

It’s not from her poop, we went outside for a walk and it went from the grass onto her hair.