In the dynamic input tool,
Where you “Read a List of Data Sources”, there should be a radio button below the “Action” field, to
“INCLUDE FIELD OF DATA SOURCES”,
Then you’d have an output field with the isolated name from which the data was sourced. You wouldn't be required to "include full file path" then parse out the sheet the data came from.