Get FilledRegionType by Name

# Variables
doc      = __revit__.ActiveUIDocument.Document
uidoc    = __revit__.ActiveUIDocument
app      = __revit__.Application
rvt_year = int(app.VersionNumber)

# Function
def get_filled_region(filled_region_name):
"""Function to get FilledRegionType by Name using Revit API Filters"""
    
    # Create Filter
    param_id  = ElementId(BuiltInParameter.ALL_MODEL_TYPE_NAME)
    pvp       = ParameterValueProvider(param_id )
    condition = FilterStringEquals()
    if rvt_year < 2022:
        fRule = FilterStringRule(pvp, condition, filled_region_name, True)
    else:
        fRule = FilterStringRule(pvp, condition, filled_region_name)
    
    my_filter   = ElementParameterFilter(fRule)
    
    # Get FilledRegionType
    return FilteredElementCollector(doc).OfClass(FilledRegionType)\
    .WherePasses(my_filter).FirstElement()

⌨️ Happy Coding!
Erik Frits