[Engine] Fixed regex for parsing commands