tvshowmatching “1of6” “2of6” advancedsettings.xml

I tried searching for a while but cannot find the solution,
how should I edit tvshowmatching in order for it to detect filenames such as:
Name.blah.blah.blah.2of5.blah.blah.blah

There’s only one season, so it should be getting picked up as “Season 1, Episode 2“, but Kodi just completely ignores it.
I’m guessing Kodi sees two numbers and gets confused, so is there anyway I can get kodi to:
-detect any number that comes directly before “of” as the episode number (1of)
-ignore any number that comes directly after “of” (of5)

Thanks in advance, sorry if this is the wrong place to ask.