I have a solution.
Earlier, in the midst of coding, I realized that the code was pointing to a newer version.
I proceeded to the project properties and changed the TargetServerVersion to 2019. I corrected the issue and rebuilt waiting for errors, but none came.
Later after finishing the code and deploying, it was silently failing to execute the script task which other components are dependent on.
This was because that script task was completed before I changed the target version, and it caused it to break somehow.
I (copied the contents) and then deleted and rebuilt the script task.
I then rebuilt and deployed the package.
The deployed job now works correctly.