In my world of survival, ONLY 2 Pillager appeared in my area was not a village I went to him killed her and have noticed the bathroom omen effect and how do I get the way without the I know where the other pillager
Go with milk, have a look.
https://minecraft.fandom.com/wiki/Bad_Omen
Only with milk it goes away, if not they come more often.
That's because you killed a pillager with a flag on its head. The Bad Omen effect you get only from those - Next time you just spared the one and lock him.
Drinking milk erases all effects, so it's the solution you're looking for.