...
Begin by opening a flow in Node Red. To group a part of the flow mark the nodes you want to group.
From (1) options choose (2) groups and (3) group selections.
...
Now that the nodes are grouped you can see a double outline. If you want to add changes to the graphics style of the group double click on the outline to open properties.
...
You can add the name of the group.
You can change the outline and fill colour
The name label can be visible or not. Choose the colour and the position in which it will appear.
...