Room into spaces in revit 2023

What have you tried so far? There are a good number of topics on this already, they might be a good place to start. One example: Create Spaces by Rooms