I've been using Trilium to manage my notes for a little bit and I have to say it's quite nice.
First important thing: It's local first. If I download the app, I don't need to connect it to a server or anything to use it, it just works right there. But, as someone who wants to sync my notes between my devices, I do use the server they offer.
It's quite nice overall, notes don't have to be just text, they can be maps, lists, boards, calendar, presentation, basically whatever. And with code you can do so much more.
And thanks to the magic of self hosting, all this runs on a shared VM that I run alongside multiple other stuff, keeping the costs very low(marginal cost was $0). They provide a dockerfile to run everything straight off it and I don't even have to worry about building the application locally!