2FA codes no longer recognized by iOS?

In the past I’d receive a SMS 2FA code and iOS would recognize it and place it in the keyboard tray for quick entry. Recently the wording of the SMS message changed and my iOS (16.2) no longer parses the code. Now I need to go to my messages, remember (or copy) the code and enter it manually. Is there a workaround?