Presidio

A Python Package by Microsoft that lets you anonamize Personal Identifiable Information in Natural Language text.

It uses some NLP methods like NER to recognize entities. You can also use REGEX and other recognizers to enhance it.

Advantages to conventional approaches are

  • confidence calculation from the sourrounding words

You could also use LLMs to recognize harder entities.