import re

regex = r"(?<=\w)-\r?\n(?=\w)"
my_string = """this good pe-
riod has"""

print (re.sub(regex, "", my_string))