Is there a pattern to how MacOS security updates are named?

I'm building a program to check if a Macbook has some security features enabled.

One of the things I want to check is if the MacOS security update is installed. I can see that all OS updates are mentioned in /Library/Receipts/InstallHistory.plist

Also, I can see here that there are two ways that OS security updates are named.

Pattern 1: Increase in the semver version number eg: macOS Big Sur 11.6.2

Pattern 2: Security Update-YYYY-number. eg: Security Update 2021-007 Catalina

Is there a reason why there are two different patterns? Are they different from each other?

Is there a pattern to how MacOS security updates are named?
 
 
Q