You can pass port as parameter too. (/usr/sbin/sshd -t : to check for syntax errors)

sed -ie 's/Port.*[0-9]$/Port '2222'/gI' /etc/ssh/sshd_config