Texts from FedEx or UPS will usually be a 4 or 5 digit number instead of a phone number.
But as always if you aren't sure don't click any links or respond. Just go to the actual company website or call them and check if you have a package.