nginx presents the client's list of ALPN protocols as $ssl_preread_alpn_protocols, a comma-separated string. Use regular expressions to match each item in the list, rather than the exact value of the entire list at once.