running entity.remove() on a villager who has claimed a bed, or jobsite, does not reset the poi - free_tickets claimed by the villager.
Potential other POI effects may be Bells, Bee Hives, etc. where free_tickets can be reduced to 0.
Create and load a simple plugin
Create a "Point of Interest" such as a bed(Image shows 4 beds with free_ticket of 1)
Spawn/or lead a villager to claim said bed(Image shows 4 villagers have claimed 4 beds, free_ticket = 0)
run Entity.remove() on any said villager.( Image shows removed villagers but does not set the free_ticket for poi back to 1)