Group functions pattern

The Groups.contains , Groups.startsWith , and Groups.endsWith functions all use a “pattern” parameter.

contains(app_type/app_instance_id, pattern, limit)

What type of pattern is this? Seems to work fine with single strings but what if I want to match for multiple strings, or a wildcard match everything? Tried using regex here but does not seem to work.