[TERMINAL] - Implement regex style 'expect' function for /key sequences

Royal TS V5 beta is now available which features regex syntax highlighting:

As for the “expect” function, please create a dedicated post in the Ideas forums. Thanks!