This is a function (utilising the add-in you've installed) and as such is entered directly into cell D2.
(essentially REGEX.MID and all other morefunc Functions are used as you would use any other function, eg VLOOKUP, MATCH etc...)