Never mind, I just had a typo, but this was nested in other code that I didn't notice any warning from it (unsure why). But the first option does work if I type it correctly.
$MO->context->flags->set(showExtraParens => 2); $MO->string;
$MO->context->flags->set(showExtraParens => 2); $MO->string;