[test] Add test case for regex containing a slash