The bug is in TensorFlow Recommenders, as explained here. You may work around the bug by including the following code before installing any TensorFlow related packages:
import os os.environ['TF_USE_LEGACY_KERAS'] = '1'