The tally package automatically lists all todos in a document and highlights them.
Usage
#import "@preview/tally:0.1.1": tally, todo-list
#set text(font: "Barlow")
#show: tally.with(color: red)
#todo-list
= Introduction
#lorem(10)
TODO: Create introduction
Output:
