I have some code like:
if(s.Primary_Filter_Values__c?.containsIgnoreCase(billingState) || s.Primary_Filter_Values__c?.containsIgnoreCase(billingCountry)) {}
VS Code is throwing me an unexpected token error for the safe navigation syntax. I can save it to the connected org still though. I checked the class API version and this appears to support it according to documentation. Am I missing something here?
<?xml version="1.0" encoding="UTF-8"?>
<ApexClass xmlns="http://soap.sforce.com/2006/04/metadata">
<apiVersion>50.0</apiVersion>
<status>Active</status>
</ApexClass>