Add sales tax to custom packing slip

I am not proficient in using liquid. I have managed to create a custom packing slip that prints with a 4x6 thermal printer and figured out how to add the product line cost, shipping method, shipping cost and order total cost to the packing slip.

I would also like to add a sales tax line item but I cannot figure out how to do that. The order total cost actually includes the sales tax collected, but I cannot find a way to display the sales tax.

Thanks in advance for any help!

You can add something like this for total tax:

{% for tax_line in order.tax_lines %}
  <div class="flex-line">
    <span>Tax ({{ tax_line.title }} {{ tax_line.rate | times: 100 }}%):</span>
    <span>{{ tax_line.price | money }}</span>
  </div>
{% endfor %}

Thanks, this helped me figure it out.