Fix ClassCastException

chiba.plugin/plugins requires matching-regex passed as instance of
java.util.regex.Pattern (java.lang.String cannot be cast to
java.util.regex.Pattern)