Thanks for the answer, I discovered it was already working with HEIC files, I just had a few .HEIC files that were jpeg with the wrong file extension.
if you have the package libheif it works out of the box in thunar
/usr/share/thumbnailers/heif.thumbnailer is owned by libheif 1.17.6-3