I searched around a bit and think the best bet for replacing list of terms in bulk is to fork replace utility in joplin-utils by @rxliuli. As barebones adhoc solution it needs just a single loop passing values to $keyword / $replace and form(s) to upload the terms.