cannot set flags with compiled re, fix a very broken item_pattern string, fix key name