band-aid fix to bot crashes, making the bot remove all (?R) and \p in the expression before evaluating