The explanation here is excellent, but the same site has an even more useful page that’s easy to overlook: the “granny knot analyser” that will tell you if your current knot is secure or not.
https://www.fieggen.com/shoelace/grannyknotanalyser.htm
What a wonderful website.