1 point
I can recommend Notesnook. Relatively cheap premium plan, everything is open source, with clients available on F-Droid and Flatpak and end-to-end encryption.
For server code they already published the source. Option to use self-hosted servers is on the roadmap: https://notesnook.com/roadmap/