@nicrivard, when you talk about putting it in a template, I’m not sure what you’re trying to do. I don’t use daily notes, or templates (yet), but my understanding is that your use of {{ }} with date is for displaying the current date/time. Based on this, and a cursory inspection of the detailed date formatting documentation, that last line, in a template, should render a line that looks something like this:
(“- [ ]” /W|2-90-90-10-90-30-9/)
I’m not sure of your requirement. If the goal is to just put a search query into the note derived from a template, such that the line represents the necessary query to find certain note(s), then it’s just a matter of formatting. If the goal is to actually have a list of incomplete tasks automatically populated by the template, you’d have to use a search block in the template:
```query
/^- [ ] {{date}}/
```
where {{date}} can be whatever format you want. This search would not appear in the template preview, because {{date}} isn’t expanded; only in a note derived from the template. This would give you a list of notes and matching text (tasks) embedded in the note derived from the template. I don’t particularly care for how embedded searches are implemented because you can’t see the note as a hover action, as you could with a link, and you can’t copy the list out, as you could with the search plugin. Although you can jump to those notes, as you can with a search result.
I’m currently working on a dashboard as an external script. I’ve seen someone post an external script for displaying daily notes on a calendar, but I find that too restrictive (I don’t use daily notes). So far I have a dashboard that, given a set of notes (literally the search results list from Obsidian, which you can copy/paste) it will provide certain information. This means I can use any search capability internal to Obsidian or external from the system, to generate a note dataset. The script will provide a dashboard note of those notes on a calendar, like this:

so you can see # of notes per day, which is a link to a timeline of those same notes, as well as a frequency distribution of number of notes per month. I’m not sure how this works on Windows, but on Linux/Mac, Obsidian automatically re-reads the note when it’s updated, so I can schedule automated dashboard updates from the system, and Obsidian will always display the latest dashboard(s).
Why am I telling you this? Because having completed the calendar, timeline, and frequency distribution, I was thinking about also adding To-do-type entries extracted from the given note dataset. I intend to post it to Share & Showcase, which presents a problem: people have different ways of indicating to-do’s. I’d have to somehow make it configurable, which is going to take longer. I’d also like to include some automatic key/value analysis from the dataset, but I’m not sure how that will look yet, although as a feature, that syntax is fairly strict: on a separate line, key-name followed by colon and space. So I may start with that first because it’s sraightforward. But I really would like to capture to-do items because I want to be able to sprinkle them in any note I happen to be working on, and find them all in a single place on the dashboard. If your idea is to get the incomplete tasks into every daily note, that’s a great concept for daily-noters.