Certain text detection

Hi,

While studying the Lesson 3 (and Lesson 4), we were looking at NLP and how it would help predict the next words (form a sentence/ paragraph i.e., likely movie review).
How could we use that course material/ method and predict particular words in a sentence.
For example, imagine someone sends me an invoice of medical supplies but that has patient information such as Patient Name, Patient SSN, Patient DOB etc in that Invoice Description. Is there a way for me to predict that sensitive information and mask it using transfer learning ?

Thanks for the help in advance.