Kindly confirm if you've IR based webcam installed and having 'working properly' status.
Also, have a look at Microsoft support article to troubleshoot this issue specifically on Surface devices:
If issue still persists, you can refer other suggestions in this fix:
https://www.kapilarya.com/fix-facial-recognition-not-working-in-windows-11-10
Let us know if this helps!
Note: Included link(s) in this reply refers to a non-Microsoft website. The page appears to be providing accurate, safe information. Watch out for ads on the site that may advertise products frequently classified as a PUP (Potentially Unwanted Products). Thoroughly research any product advertised on the site before you decide to download and install it.