You are correct to include all of the maintenance paid in 2018, both under the separation agreement and the final divorce decree. Your former spouse should also include the total amount as income on his return.
IRS will (eventually) match up the amount you reported on your return with the amount reported on his and contact him.
**Say "Thanks" by clicking the thumb icon in a post
**Mark the post that answers your question by clicking on "Mark as Best Answer"