I want to match a string with list of regex within a `Map[String, List[Regex]]` and return the `key[String]` as String in case there is a match.

e.g:

```
 //Map[String, List[Regex]]

 Map(m3 -> List(([^ ]*)(rule3)([^ ]*)), m1 -> List(([^ ]*)(rule1)([^ ]*)), m4 -> List(([^ ]*)(rule5)([^ ]*)), m2 -> List(([^ ]*)(rule2)([^ ]*)))

```

if the string is `"***rule3****"` it should return me the key `"m3"`, similarly if the string is `"****rule5****"` it should return key `"m4"`.

How do i implement this?

something that i tried which is not working

```
rulesMap.mapValues (y => y.par.foreach (x => x.findFirstMatchIn("description"))).keys.toString()

```