I have experienced similar issues with the exercise modules in MS learn. There are bugs with those modules sometimes. I would suggest you continue other modules and revisit this exercise modules one more time to see if it validates the exercise propertly
Please don't forget to Accept Answer and Up-vote if the response helped -- Vaibhav