Test, validate and match regular expressions
This regex parses file paths ending with the `.asm` extension, capturing the directory path, filename, and extension separately. It validates directory and file names against illegal Windows characters (\, /, :, *, ", <, >, |) and handles relative path components like `.` and `..`. Useful for extracting components from assembly language source file paths in build systems or file processing tools.