Using iText7, is it possible to look for a text in an existing untagged PDF and tag it as ?

I have a bunch of untagged PDF files with different content text but with the same structure. I need to write a script to tag all my PDF files.

I was thinking about look for specific text structures (using regex) and tag them using iText7, but I don’t know if this is possible.

Thanks a lot!