Hi, for some reason the regex was not formatted right. I have experimented with a few more regex expressions which all introduced those spacing issues.
In the end what worked for me was using the following library to first remove all furigana and in a second step remove all remaining new lines from the output epub using the following regex: \n\n\n|\n\n
inside calibre.