fix: in Windows, dies with incorrect regex pattern