I would start by contacting the Pennsylvania DMV:
Contact Us
Whether you have a complaint, question or compliment regarding any interaction with PennDOT or its authorized agents, we would like to hear from you. Please contact us via email or call us at 1-800-932-4600. Your feedback helps us to better serve you.
You certainly have a complaint and a question regarding an interaction with a PennDOT authorized agent.
I would expect that if the notary incorrectly collected a tax that you should not have been charged, the DMV would refund that money back to you.