I also have this issue, affecting 1.19.3. Also coincidently the affected villagers were librarians. Although it's only some of them. The ones that are fine are ones I moved and placed their workstations after moving. The rest I had removed their workstations for an extended period of time.
Using the /data command on an affected villager, I discovered that they don't have the tag "minecraft:job_site" or "minecraft:potential_job_site" anywhere. Placing down a workstation for them to claim doesn't seem to give them back the tag. It's as if the tag or at least the ability to gain the tag has been removed.
EDIT: I have attached the screenshots of the villager's data using the /data command
Can confirm it's still an issue as "GamingEinstein" is not allowed because it contains the word "m*nge", which is a British slang for the female genitals.
Luckily replacing any of the letters seems to make it work...
This does appear to still be the case. The files have not been changed for the latest versions and still use the bugged Andesite and Diorite spawn rules. I have also updated the bug report "Affected Versions" to have the latest version...
I also have this issue, affecting 1.19.3. They only start functioning when I remove their workstation, otherwise they just stand still and not move. They don't even turn to you or other entities unless the workstation has been removed. They also don't restock.
Using the /data command on an affected villager, I discovered that they don't have the tag "minecraft:job_site" or "minecraft:potential_job_site" anywhere. Placing down a workstation for them to claim doesn't seem to give them back the tag. It's as if the tag or at least the ability to gain the tag has been removed. I added screenshots of a working and non-working villager