I updated the script as there was a space in front of the region chord name in Reaper.
I also uploaded anther script to give you a midi chord track
from the region chord names.

remove .mp4 and unzip

ReaTrak Biab SGU MGU.. to regions.zip.mp4
ReaTrak create midi chords from region chord name.zip.mp4