lineageos – Copy Paste Removes Spaces

Every time I copy and paste text on my android phone white spaces are removed, i.e.:

Copy:

this is a test

Paste:

thisisatest

The behaviour is the same no matter which app I copy/paste text from/into.
I’m using LineageOS and this started happening about 2 weeks ago, but I cannot precise the exact date or which apps were installed right before it.

Any idea how to fix/debug this?