RegexEntityExtractor - use the case defined in the Lookup Table

Hi everyone, this is my very first post.
Here is my problem:
I have some lookup tables (e.g. countries + others) and I need to pass the valued slots to a remote Action Server.
Everything is working fine but since my extracted values will be used by a case-sensitive query builder I need to ‘normalize’ them.
I know I can set the case_sensitive flag on RegexEntityExtractor, BUT I need to extract the items in the very same way they’re defined in the lists (they’re pre-defined, I can’t modify them)

I try to explain better.

I have a lookup table like this one (showing only a few examples for simplicity)

version: “2.0”

nlu:

  • lookup: product
    examples: |
    • laptops
    • DVDS
    • Lamps

Consider these sentences:

How many laptops did we sell? → it will extract ‘laptops’ :slight_smile:

How many dvds did we sell? → it will extract ‘dvds’ :frowning:

Once extracted I call the remote endpoint which will execute a query, hence I have to pass ‘DVDS’ not ‘dvds’ (the ‘where’ condition will work only with ‘DVDS’)

I can’t add a custom component / an intermediate Custom Action and I cannot modify the remote API, all I can do is configure Rasa :slight_smile:
If you have any idea about a zero-code solution please let me know,
otherwise please tell me if I can send a PR (I already modified RegexFeaturizer and RegexEntityExtractor to show a possible solution but it must be in Rasa Open Source, not in a fork lol)

Thanks!
Leo