To further satisfy your thrust for the deep understanding.
1- testRigor uses Java 11's Regex Pattern for Regex.
https://testrigor.com/docs/language/#regexRandomStringGenerationSupportValidationsSearch
2- for element locators it's their secret sauce.