You can achieve your goal by simplifying it all -
Remove unnecessary angle brackets, simplify the character class for your directory and file name, still included the dot '.' in the character class for your file extension -
getReplacementMap().put("regex:[a-zA-Z0-9_/]+[-_a-zA-Z0-9.-]+", "<HASHNAME>");