automator script to remove timestamp

Hi all

I have many files with timestamps from S3, e.g. 354862_0.d20200324-u163340.tif, 008_108164_0.d20200324-u163358.jpg, can anyone help with script for an automator quick action to remove from varying filetypes. pls?

should end up with 354862.tif and 008_108164.jpg

thanks

Model: 3.7 GHz Intel Core i5
AppleScript: automator mojave
Browser: Safari 537.36
Operating System: macOS 10.14