You’ll always know you can do better. Always! It’s better to publish in a good mood, pat yourself on the back, and maybe revisit the concepts another day (of course be honest about what you know and don’t know).
Being able to write more complex things is a matter of self-confidence. After you’ve done enough writing and publishing, you can step away from a piece without worrying that it will never get finished.