You can look at the following factors to analyze the expertise of the Magento developer:
Years of experience
Quality of projects delivered
Feedback or ratings from previous clients
Ability to work with themes, modules, and extensions
Standard-coding practices
Soft skills