i believe you will find your answer in this post - scroll down and you will see a regex rename to remove everything up to and including the first underscore in a filename.
just flatten the directory and select all .jpg files, or do a search so that all .jpg files end up in a file container, and run the regex from there.