Validation of youtube-dl versions

I'm trying to figure out how to validate the versioning of youtube-dl, but I can't quite figure out how to match both 2020.06.16.1 and 2020.06.16 as valid versions.

Does YYYY.0M.0D_MICRO match both or does it need new notation?