Build, test, and debug regular expressions
This regular expression extracts the SSH private key path assigned to a specific host ("host2") within an SSH configuration file. Using the `s` (DOTALL) flag, it matches across multiple lines to find the `IdentityFile` directive that follows the specified host declaration. The file path is then captured into a named group called "identity". It is highly useful for automating SSH scripts, validating configurations, or fetching credentials.