Entity, Slot and Regex

I am a little confused with Entity, Slot and Regex

Say I have this in my domain

entities:

  • hello_world

slots: hello_world: type: text initial_value: None

Now let’s say I specify something like this in my training data

intent:some_intent

regex:regextemplate

  • [\d]{10}

and in story say I have something like this

  • some_intent{“entity”:“hello_world”)

Here I understand that make slot auto filling work, I need to have the entity and the slot to be of same name… In this case “hello_world”, I am confused about the regex name… Does it have to be same as the slot name, or it can be anything else as I specified above?