Regex replace for external trunk number transformation

We are trying to transform the number sent on an outbound call. Currently, we have a BYOC trunk. On that trunk under the identity-->called section, we have the following match expression for testing this:
^(sip[s]?:|tel:)(+?)(933) We have tested and confirmed using regex101.com that this works. Now this is where it gets challenging. You have two documents on this topic and show different syntax to do the transformation side of the equation. First and the Second

In the first, it shows using the ${} to represent the capture group and then adding in the numbers you want. While the second shows the capture group should be just $ and the number. The replacement numbers are being represented as hex.

Can you please help clarify the correct syntax?

Thank You
AG

@Anthony_Gilio
Since both syntaxes are provided in the docs, my assumption is that both will work. I have seen cases working with the ${N} syntax, so I can vouch for that one.