This will match a lot of false positives. Have a look at how https://github.com/silverstripe/sapphire/blob/master/dev/install/MySQLDatabaseConfigurationHelper.php#L144 checks for ALTER TABLE.