hello .. you need slashes wrapping the regex
[{"id":"03084b6a8123d65d","type":"function","z":"5847b7aa62131d37","name":"","func":"\nmsg.payload = msg.payload.match(/^\\#\\?[1-3][0-6]$/)\n\nif (msg.payload) {\n node.warn(msg.payload[0]); // first match\n return msg;\n}\n\n\n\n","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":560,"y":1560,"wires":[["10663b0e50f5fd9e"]]},{"id":"eaafbd92ddb9c638","type":"inject","z":"5847b7aa62131d37","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"#?25","payloadType":"str","x":390,"y":1480,"wires":[["03084b6a8123d65d"]]},{"id":"10663b0e50f5fd9e","type":"debug","z":"5847b7aa62131d37","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":770,"y":1560,"wires":[]},{"id":"d8b0fe4ae2d41355","type":"inject","z":"5847b7aa62131d37","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"#25","payloadType":"str","x":390,"y":1540,"wires":[["03084b6a8123d65d"]]},{"id":"100f24e3319532a9","type":"inject","z":"5847b7aa62131d37","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"#?55","payloadType":"str","x":390,"y":1600,"wires":[["03084b6a8123d65d"]]},{"id":"257a5fb774798e73","type":"inject","z":"5847b7aa62131d37","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"#?36","payloadType":"str","x":390,"y":1660,"wires":[["03084b6a8123d65d"]]}]