That should be possible with Hazels built in “match patterns” rule. No need for a script I think. You find more information about it here: https://www.noodlesoft.com/manual/hazel/attributes-actions/attribute-reference/using-custom-attributes/
Edit: to match “1906 PL 501” it should look something like this:
“TextToken” should then appear in the rename section.