Never had to do it as I've always made sure my TFN is recorded but I assume there is a provision to claim back withholding tax in the tax return.
Just had a gander at one of my tax returns prepared by an accountant. This section would seem to apply to you
View attachment 144394
Suggest you calculate it.
Never, ever assume the ATO calculates these correctly and that any auto-fill is 100% accurate. On its web-site the ATO has placed a disclaimer about it effectively saying rely upon our calculations at your own peril.