I want to use regex in field names as "*Warning" or "*Danger" in below map code
<option name="mapping.fieldColors">{Warning:0xffd700,Danger:0xe60026}</option>
I think because you don't have field names fixed, the only option I can see is a custom table cell renderer with Splunk JS.
Find the reference - https://www.youtube.com/watch?v=NwxHA-1KDtc