column = "Keywords"
df = df.withColumn(f"{column}", F.regexp_replace(f"{column}", r"^'|'$", ""))
This regex r"^'|'$" will replace the starting and ending single quotes