admin/environment/custom check/Assignment 2.2 is in use

From MoodleDocs

The 'mod_assignment' plugin has been deprecated in favour of 'mod_assign'. Upgrading to Moodle 4.2+ will throw an error if the current Moodle installation contains records for mod_assignment.

You can resolve this before upgrading by:

1) Backing up your Assignment 2.2 activities and restoring them as new Assignment activities; or

2) Deleting the data from the assignment tables in the database.