import re
line = "[ choice A | choice B ] and choose between [ choice D | choice F ]"
line = re.sub(r"\[\s*([^][|]*?)\s*\|[^][]*]", r"\1", line)
print(line)