I am using Lineageos 17.1 on the FP3 (the phone is not rooted).
I do know my screen pattern code (it is a 6x6 pattern), but I am not able to enter it correctly, because I disabled that the pattern is shown and that the sequence is visible.
In the recovery mode I can enable adb and I tried to delete the file
adb shell rm /data/system/gesture.key
which worked in the past, but now this file does not exist anymore on Lineageos 17.1. ADB unfortunately does not work when the screen is locked.
Is there another way to bypass the screen pattern? Doing a factory reset is the last option I want to do. Making the pattern visible should be enough in principle.