Can't Import TFBertModel

Code: from transformers import TFBertModel

Error:
AttributeError Traceback (most recent call last) File c:\Users\rtrct\AppData\Local\Programs\Python\Python312\Lib\site-packages\transformers\utils\import_utils.py:1560, in _LazyModule.get_module(self, module_name) [1559](file:///C:/Users/rtrct/AppData/Local/Programs/Python/Python312/Lib/site-packages/transformers/utils/import_utils.py:1559) try: → [1560](file:///C:/Users/rtrct/AppData/Local/Programs/Python/Python312/Lib/site-packages/transformers/utils/import_utils.py:1560) return importlib.import_module(“.” + module_name, self.name) [1561](file:///C:/Users/rtrct/AppData/Local/Programs/Python/Python312/Lib/site-packages/transformers/utils/import_utils.py:1561) except Exception as e: File c:\Users\rtrct\AppData\Local\Programs\Python\Python312\Lib\importlib_init.py:90, in import_module(name, package) [89](file:///C:/Users/rtrct/AppData/Local/Programs/Python/Python312/Lib/importlib/init.py:89) level += 1 —> [90](file:///C:/Users/rtrct/AppData/Local/Programs/Python/Python312/Lib/importlib/init.py:90) return _bootstrap._gcd_import(name[level:], package, level) File :1387, in _gcd_import(name, package, level) File :1360, in find_and_load(name, import) File :1331, in find_and_load_unlocked(name, import) File :935, in _load_unlocked(spec) File :995, in exec_module(self, module) File :488, in _call_with_frames_removed(f, *args, **kwds) File c:\Users\rtrct\AppData\Local\Programs\Python\Python312\Lib\site-packages\transformers\models\bert\modeling_tf_bert.py:28 [26](file:///C:/Users/rtrct/AppData/Local/Programs/Python/Python312/Lib/site-packages/transformers/models/bert/modeling_tf_bert.py:26) import tensorflow as tf

[1564](file:///C:/Users/rtrct/AppData/Local/Programs/Python/Python312/Lib/site-packages/transformers/utils/import_utils.py:1564) f" traceback):\n{e}" [1565](file:///C:/Users/rtrct/AppData/Local/Programs/Python/Python312/Lib/site-packages/transformers/utils/import_utils.py:1565) ) from e RuntimeError: Failed to import transformers.models.bert.modeling_tf_bert because of the following error (look up to see its traceback): module ‘tensorflow._api.v2.compat.v2.internal’ has no attribute ‘register_load_context_function’

HI, I have tried many times by changing the Tensorflow and Transformers version but it does not solve the issue. Please help!