https://media.defense.gov/2023/Jul/31/2003271432/-1/-1/0/DOD-LAW-OF-WAR-MANUAL-JUNE-2015-UPDATED-JULY%202023.PDF
11.3 END OF OCCUPATION AND DURATION OF GC OBLIGATIONS
The status of belligerent occupation ends when the conditions for its application are no longer met. Certain GC obligations with respect to occupied territory continue for the duration of the occupation after the general close of military operations.