This should be working with MacOS Ventura pre-requities looks to be:
• A local account on the Mac;
• MS Endpoint Manager MDM Configuration profile with Microsoft SSO extension payload;
It's likely that in order any AAD users to login on a Mac using their AAD / Company account credentials you still have to setup either an Active Directory or a LDAP connection within the Mac's Directory Utility.
[https://techcommunity.microsoft.com/t5/microsoft-intune-blog/microsoft-simplifies-endpoint-manager-enrollment-for-apple/ba-p/3570319