Match Text Filter

Hi All, I had a file path where I wish to use a database of text to match with it. In this case, I wish to match text IO to the file name with no letters attaching to it. I had done a simple python loop however need to refine it so that python only picks up only IO.

*possible the characters next to IO in file name may not be “-” but spaces or “_”