That there is a job tailor made for a Regular Expression. If you’re not familiar with them, it’s basically a special language for matching text using rules. The full scope of that is worthy of some research, such as here.
For your case, you would open up the replace dialog with Find > Replace...
from the menu (or the associated keyboard shortcut, which the menu will tell you if you don’t know it).
In the options button on the left, make sure that regular expressions are turned on, and then enter the following:
Find What: (AS `.*`,)
Replace With: \1\n
Here the magic is in three parts:
- The construct
.*
means “match any sequence of any character”
- The parenthesis wrapping the search text mean “capture whatever matches inside for later use”
- The
\1
in the replacement means "Insert the text captured by the first set of parenthesis
- The
\n
means “insert a newline”
Well, clearly I can’t count, but the result is that the search term matches regardless of what’s inside of the back ticks and the replacement uses what was matched to put it back along with the newline that you want.
When you’re working with text a lot, regular expressions are a handy tool to have in your back pocket.