Salesforce APEX class with SOQL query using WITH SECURITY_ENFORCED

I’m closing this post since it is closely related to this other one, already answered.