I figured it is parsed and it works this way:
In a single rule,
DOMAIN,example.com,REJECT,extended-matching
AND, ((PROTOCOL,HTTPS), (DOMAIN,example.com,extended-matching)),OFF
But it does not work in the list except if added in the DOMAIN-SET LIST internally