Here is a way you could do it with just the standard nodes AND without using regex. I'm sure someone else can give you an example using regex which wil make the flow smaller.
and here is the flow:
[{"id":"5b779e08.cf148","type":"inject","z":"4915e138.8021c8","name":"","topic":"","payload":"rgb(77, 29, 20)","payloadType":"str","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":150,"y":60,"wires":[["ee7008b5.d8f31"]]},{"id":"d089b582.beece8","type":"debug","z":"4915e138.8021c8","name":"","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":470,"y":320,"wires":[]},{"id":"ee7008b5.d8f31","type":"split","z":"4915e138.8021c8","name":"split at the \"(\"","splt":"(","spltType":"str","arraySplt":1,"arraySpltType":"len","stream":false,"addname":"","x":200,"y":140,"wires":[["cb24e6bd.62c748"]]},{"id":"cb24e6bd.62c748","type":"switch","z":"4915e138.8021c8","name":"don't pass the 'rgb'","property":"payload","propertyType":"msg","rules":[{"t":"neq","v":"rgb","vt":"str"}],"checkall":"true","repair":false,"outputs":1,"x":210,"y":200,"wires":[["e0942efe.3d8858","4c3ceb17.9fb00c"]]},{"id":"e0942efe.3d8858","type":"split","z":"4915e138.8021c8","name":"split at the \"(\"","splt":")","spltType":"str","arraySplt":1,"arraySpltType":"len","stream":false,"addname":"","x":220,"y":260,"wires":[["1165df67.6b0f89","d1ffa4de.7b6b28"]]},{"id":"1165df67.6b0f89","type":"switch","z":"4915e138.8021c8","name":"don't pass the ')'","property":"payload","propertyType":"msg","rules":[{"t":"nempty"}],"checkall":"true","repair":false,"outputs":1,"x":210,"y":320,"wires":[["d089b582.beece8","bda8bb4f.d94a68"]]},{"id":"4c3ceb17.9fb00c","type":"debug","z":"4915e138.8021c8","name":"","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":470,"y":200,"wires":[]},{"id":"d1ffa4de.7b6b28","type":"debug","z":"4915e138.8021c8","name":"","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":470,"y":260,"wires":[]},{"id":"bda8bb4f.d94a68","type":"split","z":"4915e138.8021c8","name":"split at the \",\"","splt":", ","spltType":"str","arraySplt":1,"arraySpltType":"len","stream":false,"addname":"","x":200,"y":380,"wires":[["8dc65f7c.c07cf8","51e98ae9.fb62dc"]]},{"id":"8dc65f7c.c07cf8","type":"debug","z":"4915e138.8021c8","name":"","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","x":450,"y":380,"wires":[]},{"id":"51e98ae9.fb62dc","type":"switch","z":"4915e138.8021c8","name":"","property":"parts.index","propertyType":"msg","rules":[{"t":"eq","v":"0","vt":"num"},{"t":"eq","v":"1","vt":"num"},{"t":"eq","v":"2","vt":"num"}],"checkall":"true","repair":false,"outputs":3,"x":190,"y":480,"wires":[["3183e0ad.7781c8"],["f72c8657.c6eef"],["fbfeb478.ad5f1"]]},{"id":"3183e0ad.7781c8","type":"change","z":"4915e138.8021c8","name":"format R value","rules":[{"t":"set","p":"payload","pt":"msg","to":"'R='&payload","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":380,"y":440,"wires":[["fb014da.36643b"]]},{"id":"fb014da.36643b","type":"debug","z":"4915e138.8021c8","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":590,"y":440,"wires":[]},{"id":"f72c8657.c6eef","type":"change","z":"4915e138.8021c8","name":"format G value","rules":[{"t":"set","p":"payload","pt":"msg","to":"'G='&payload","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":380,"y":480,"wires":[["c68a5aed.fd086"]]},{"id":"c68a5aed.fd086","type":"debug","z":"4915e138.8021c8","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":590,"y":480,"wires":[]},{"id":"fbfeb478.ad5f1","type":"change","z":"4915e138.8021c8","name":"format B value","rules":[{"t":"set","p":"payload","pt":"msg","to":"'B='&payload","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":380,"y":520,"wires":[["bd589fca.074d78"]]},{"id":"bd589fca.074d78","type":"debug","z":"4915e138.8021c8","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":590,"y":520,"wires":[]}]