Is there any flag in the database indicating that the password must be changed or maybe the password change request is a non-zero value? (I've found this - user_passchg).
In my opinion, there is no need for extension but an additional function built into the core in future versions - one button "One time force the password change for everyone", which sets this flag once. Unfortunately, if there is no such flag, it should be added to the base table in future version. This function should not depend on the existing periodically password change enforcement as it is a one-time forcing change.
unsigned user_passchg // >0 periodically change password
bool user_passchflaf //1-enforce password change
Of course, this can be more extensive, with a more extensive interface, for example with the selection of user groups (I want this). In this case, it can be an extension. Look here viewtopic.php?f=496&t=2463656
It really seems appropriate in the case you described.
If you report such an idea, I will support it.