Replacing the column values based on Regex matching SQL