Lionel Messi has committed to staying with Inter Miami through 2028 by signing a new three-year deal with the MLS side.