custom dictionary with regex search on dict keys