I'm am new to using PyQGIS and this question has been answered in various forms already, however not specifically the way I need it; I have a big QGIS project with several layers with similar, but not the same names (e.g. names containing certain keywords like "nationalpark", "flooding zone" etc.), and I want to apply Styles to all layers with names containing certain keywords, e.g. "nationalpark". I found out that I can select layers using e.g.
layers = QgsProject.instance().mapLayersByName('my layer name')
but how can I select layers by non-specific names, containing certain keywords?