It works with sunglasses for me, which has always made me wonder how well it's actually working
You can turn off "Required Attention for Face ID" in the Settings as a workaround.
Never had any issues; especially if you setup the alternate appearance with a mask / partially obstructed face.
When FaceID was announced, they also said it should also continue to work with varying amounts of facial hair - which I have also found to be true.