Am I going to lose my data on my Mac partition if I delete the Linux partition to extend my Mac partition?
The answer is no you will not lose your data.

You now are a potential member in the "Unintended Consequences" club. So what we do here is change "no" to "you probably won't lose data if everything goes well."

Which means, backup the entire Mac partition and then boot from the backup and make sure it is good before proceeding.

Once you have your backup that Murphy's Law of Unnecessary Backups says you will now never need the backup you just made, you may now proceed with deleting the Linux partition and expanding the macOS partition into the empty space. Which is not supposed to delete anything on your macOS partition, if everything goes well.