SQL extraction regex fix
SQL extraction regex fix addresses the problem in Qwen3 response format where the SQL query was not properly captured due to missing newline before closing backticks. Safety net cleanup enhances SQL extraction regex fix by stripping explanation text markers after extraction to ensure pure SQL before execution. SQL extraction regex fix reduces SQL syntax errors by properly capturing SQL code blocks which fixed previous syntax errors related to backticks. Logging is associated with SQL extraction regex fix as it will be added to trace extraction and execution results. SQL extraction regex fix was deployed on theo. Commit 408be74 fixes the SQL extraction issue where multiple code blocks in Qwen3 response cause incorrect matching by capturing only SELECT...; patterns in code blocks. The Qwen3 response format required the SQL extraction regex to be fixed to handle SQL code blocks without a newline before closing backticks. Commit 70f724f cleaned up safety nets by stripping explanation text markers from the extracted SQL, ensuring pure SQL before execution. The fixed SQL extraction regex and cleanup removed SQL syntax errors in the logs caused by improper SQL extraction. The generation and display of findings depend on correct SQL extraction, which was fixed by the regex updates.