I think you might want (?i:TestName1*|TestName2*) ?
(?i:TestName1*|TestName2*)
Based on: Syntax · google/re2 Wiki · GitHub