Add test for using regex package in pattern