[UE5, Bug Report] HLSL 'TexSampler' undefined if a parameter name does not equal Tex

I suppose this is a bug, documentation is lacking and already wasting time.

Custom Material Expressions in Unreal Engine | Unreal Engine 5.2 Documentation

Setup:

afbeelding

You will get the following error:

For whatever reason you must have a parameter named EXACTLY “Tex”, not MyTex or an actual descriptive parameter name. The texture object parameter must be named Tex. Otherwise the error appears. It’s unclear where those “magic” beings as TexSampler are declared and why. If they are automatically generated then why do I have to pass it on as an argument? How can I be aware of the existence of any method / variable if I can only write my code in this miniature text area -_-?

Is there an intellisense way of doing things? So that I actually can figure out what I am allowed to write there and why?