Hello @sam nick and welcome to Microsoft Q&A.
It looks like you want to extract the middle part of the file name.
If we can make the assumption that all your file names follow the form "part1_TableName_part3" , having exactly 3 parts, separated by _ , then we can construct an expression to retrieve the TableName.
@split(pipeline().parameters.filename,'_')[1]