[flash_mode] parse boards' name as regexp