The intent would be clearer if the expected value was spelled out as a literal list of tokens:

    ['{sendmail_app}', '--option1', '--option2', '{sender}'])