Hi Lunafairphone and welcome to the community and the forum.
You might pick up some ideas from this discussion of a solution for the FP3.
I have not yet been able to get a close look at the FP4 so I don’t know what the potentialities are for attaching a cord.