Now that @Y.D.X has provided an answer, please mark their post as the answer to this question. This distinguishes this question as answered but that post then is shown directly beneath your original post where the question is asked.
The title of your question should make clear what your post is about. Good titles are questions you would ask your friend about Typst.
Also, it’s great you posted code but it is even better if it is formatted. There is a section in the link above about this. The short version is you should use triple back ticks ```.
I’d also like to point out that since we don’t have a typst-test.csv file, the code you posted can’t be used directly. This didn’t slow down answering this specific question, but it can make a huge difference so keep it in mind. If you’re interested in this topic here’s a nice introduction: https://www.sscce.org/.