If you want to stick with text, I can wholeheartedly recommend Obsidian. It's a bunch of Markdown files on disk and Obsidian does a great job of layering organization features on top of that. (I personally also pay for their Sync service, but you can sync to other devices using other cloud services — they're just Markdown files on disk, after all!)
I guess in truth I have a handful of "requirements" - text based, able to avoid lock-in, able to sync, and cross-platform availability. Looks like it checks all the boxes.