Without 1.21 features enabled, the bad omen effect does nothing when the player is near a village in the Nether. However, with 1.21 features enabled, it will convert into raid omen.
To reproduce:
Create a new world with 1.21 features enabled.
Spawn a villager and place a bed in the Nether to create a village.
Drink an ominous bottle near the village, noticing that the bad omen will convert into a raid omen despite raids not being possible in the Nether.
Linked issues
relates to 1
Comments 2
relates to MC-270655
Can confirm.