Test, validate and match regular expressions
This regular expression is designed to extract table names from SQL SELECT queries. It specifically targets text following the keywords FROM, JOIN, or OJ, while avoiding subqueries that begin with SELECT. The pattern accommodates backticks, parentheses, and comma-separated lists of tables, making it highly useful for SQL parsing and query analysis tools.