diff --git a/bids/layout/layout.py b/bids/layout/layout.py
index 7ac52f6b..35cb0f61 100644
--- a/bids/layout/layout.py
+++ b/bids/layout/layout.py
@@ -897,27 +897,17 @@ class BIDSLayout(object):
         -------
         list of :obj:`bids.layout.BIDSFile` or str
             A list of BIDSFiles (default) or strings (see return_type).
-
-        Notes
-        -----
-        * In pybids 0.9.0, the 'extensions' argument has been removed in
-          favor of the 'extension' entity.
         """
-        if 'extensions' in filters:
-            filters['extension'] = filters.pop('extensions')
-            warnings.warn("In pybids 0.9.0, the 'extensions' filter was "
-                          "deprecated in favor of 'extension'. The former will"
-                          " stop working in 0.11.0.", DeprecationWarning)
 
         layouts = self._get_layouts_in_scope(scope)
 
         entities = self.get_entities()
 
-        # For consistency with past versions where "extensions" was a
-        # hard-coded argument, allow leading periods
+        # Strip leading periods if extensions were passed
         if 'extension' in filters:
             exts = listify(filters['extension'])
-            filters['extension'] = [x.lstrip('.') for x in exts]
+            filters['extension'] = [x.lstrip('.') if isinstance(x, str) else x
+                                    for x in exts]
 
         if drop_invalid_filters:
             invalid_filters = set(filters.keys()) - set(entities.keys())

layout.get(..., extension=bids.layout.Query.ANY) fails
`layout.get` assumes that the `extension` filter is a string or list of strings. We need to handle the `Query` options, as well as `None`.

```Python
~/Projects/bids-standard/pybids/bids/layout/layout.py in get(self, return_type, target, scope, regex_search, absolute_paths, drop_invalid_filters, **filters)
    918         if 'extension' in filters:
    919             exts = listify(filters['extension'])
--> 920             filters['extension'] = [x.lstrip('.') for x in exts]
    921 
    922         if drop_invalid_filters:

~/Projects/bids-standard/pybids/bids/layout/layout.py in <listcomp>(.0)
    918         if 'extension' in filters:
    919             exts = listify(filters['extension'])
--> 920             filters['extension'] = [x.lstrip('.') for x in exts]
    921 
    922         if drop_invalid_filters:

AttributeError: 'Query' object has no attribute 'lstrip'
```
diff --git a/bids/layout/tests/test_layout.py b/bids/layout/tests/test_layout.py
index 52647802..229634d9 100644
--- a/bids/layout/tests/test_layout.py
+++ b/bids/layout/tests/test_layout.py
@@ -280,7 +280,8 @@ def test_get_val_none(layout_7t_trt, acq):
 
 def test_get_val_enum_any(layout_7t_trt):
     t1w_files = layout_7t_trt.get(
-        subject='01', ses='1', suffix='T1w', acquisition=Query.ANY)
+        subject='01', ses='1', suffix='T1w', acquisition=Query.ANY,
+        extension=Query.ANY)
     assert not t1w_files
     bold_files = layout_7t_trt.get(subject='01', ses='1', run=1, suffix='bold',
                                    acquisition=Query.ANY)

pip install -e .[analysis]
parse_log_pytest
pytest
pytest codecov
apt-get update apt-get install -y gcc
3.8
pytest --no-header -rA --tb=line --color=no -p no:cacheprovider -W ignore::DeprecationWarning
attrs==25.3.0
bids-validator==1.14.7.post0
bidsschematools==1.0.4
certifi==2025.1.31
charset-normalizer==3.4.1
click==8.1.8
codecov==2.1.13
coverage==7.6.1
docopt==0.6.2
exceptiongroup @ file:///croot/exceptiongroup_1706031385326/work
greenlet==3.1.1
idna==3.10
importlib_resources==6.4.5
iniconfig @ file:///home/linux1/recipes/ci/iniconfig_1610983019677/work
jsonschema==4.23.0
jsonschema-specifications==2023.12.1
nibabel==5.2.1
num2words==0.5.14
numpy==1.24.4
packaging @ file:///croot/packaging_1720101850331/work
pandas==2.0.3
patsy==1.0.1
pkgutil_resolve_name==1.3.10
pluggy @ file:///tmp/build/80754af9/pluggy_1648042571233/work
-e git+https://github.com/bids-standard/pybids.git@5fab1dee770babffa7aef668b24cb59a90ba37ef#egg=pybids
pytest @ file:///croot/pytest_1717793244625/work
python-dateutil==2.9.0.post0
pytz==2025.2
PyYAML==6.0.2
referencing==0.35.1
requests==2.32.3
rpds-py==0.20.1
scipy==1.10.1
six==1.17.0
SQLAlchemy==2.0.40
tomli @ file:///opt/conda/conda-bld/tomli_1657175507142/work
typing_extensions==4.13.0
tzdata==2025.2
urllib3==2.2.3
zipp==3.20.2

name: pybids
channels:
  - defaults
  - https://repo.anaconda.com/pkgs/main
  - https://repo.anaconda.com/pkgs/r
  - conda-forge
dependencies:
  - _libgcc_mutex=0.1=main
  - _openmp_mutex=5.1=1_gnu
  - ca-certificates=2025.2.25=h06a4308_0
  - exceptiongroup=1.2.0=py38h06a4308_0
  - iniconfig=1.1.1=pyhd3eb1b0_0
  - ld_impl_linux-64=2.40=h12ee557_0
  - libffi=3.4.4=h6a678d5_1
  - libgcc-ng=11.2.0=h1234567_1
  - libgomp=11.2.0=h1234567_1
  - libstdcxx-ng=11.2.0=h1234567_1
  - ncurses=6.4=h6a678d5_0
  - openssl=3.0.16=h5eee18b_0
  - packaging=24.1=py38h06a4308_0
  - pip=24.2=py38h06a4308_0
  - pluggy=1.0.0=py38h06a4308_1
  - pytest=7.4.4=py38h06a4308_0
  - python=3.8.20=he870216_0
  - readline=8.2=h5eee18b_0
  - setuptools=75.1.0=py38h06a4308_0
  - sqlite=3.45.3=h5eee18b_0
  - tk=8.6.14=h39e8969_0
  - tomli=2.0.1=py38h06a4308_0
  - wheel=0.44.0=py38h06a4308_0
  - xz=5.6.4=h5eee18b_1
  - zlib=1.2.13=h5eee18b_1
  - pip:
      - attrs==25.3.0
      - bids-validator==1.14.7.post0
      - bidsschematools==1.0.4
      - certifi==2025.1.31
      - charset-normalizer==3.4.1
      - click==8.1.8
      - codecov==2.1.13
      - coverage==7.6.1
      - docopt==0.6.2
      - greenlet==3.1.1
      - idna==3.10
      - importlib-resources==6.4.5
      - jsonschema==4.23.0
      - jsonschema-specifications==2023.12.1
      - nibabel==5.2.1
      - num2words==0.5.14
      - numpy==1.24.4
      - pandas==2.0.3
      - patsy==1.0.1
      - pkgutil-resolve-name==1.3.10
      - pybids==0.10.2+69.g5fab1dee
      - python-dateutil==2.9.0.post0
      - pytz==2025.2
      - pyyaml==6.0.2
      - referencing==0.35.1
      - requests==2.32.3
      - rpds-py==0.20.1
      - scipy==1.10.1
      - six==1.17.0
      - sqlalchemy==2.0.40
      - typing-extensions==4.13.0
      - tzdata==2025.2
      - urllib3==2.2.3
      - zipp==3.20.2
prefix: /opt/conda/envs/pybids

bids/layout/tests/test_layout.py::test_get_val_enum_any
bids/layout/tests/test_layout.py::test_to_df
bids/layout/tests/test_layout.py::test_layout_init bids/layout/tests/test_layout.py::test_index_metadata[True-None-3.0] bids/layout/tests/test_layout.py::test_index_metadata[False-None-None] bids/layout/tests/test_layout.py::test_index_metadata[False-query2-3.0] bids/layout/tests/test_layout.py::test_index_metadata[False-query3-3.0] bids/layout/tests/test_layout.py::test_index_metadata[False-query4-3.0] bids/layout/tests/test_layout.py::test_index_metadata[False-query5-3.0] bids/layout/tests/test_layout.py::test_index_metadata[False-query6-3.0] bids/layout/tests/test_layout.py::test_layout_repr bids/layout/tests/test_layout.py::test_load_description bids/layout/tests/test_layout.py::test_get_file bids/layout/tests/test_layout.py::test_get_metadata bids/layout/tests/test_layout.py::test_get_metadata2 bids/layout/tests/test_layout.py::test_get_metadata3 bids/layout/tests/test_layout.py::test_get_metadata4 bids/layout/tests/test_layout.py::test_get_metadata_meg bids/layout/tests/test_layout.py::test_get_metadata5 bids/layout/tests/test_layout.py::test_get_metadata_via_bidsfile bids/layout/tests/test_layout.py::test_get_metadata_error bids/layout/tests/test_layout.py::test_get_with_bad_target bids/layout/tests/test_layout.py::test_get_bvals_bvecs bids/layout/tests/test_layout.py::test_get_subjects bids/layout/tests/test_layout.py::test_get_fieldmap bids/layout/tests/test_layout.py::test_get_fieldmap2 bids/layout/tests/test_layout.py::test_bids_json bids/layout/tests/test_layout.py::test_get_return_type_dir bids/layout/tests/test_layout.py::test_get_val_none[None] bids/layout/tests/test_layout.py::test_get_val_none[Query.NONE] bids/layout/tests/test_layout.py::test_get_return_sorted bids/layout/tests/test_layout.py::test_ignore_files bids/layout/tests/test_layout.py::test_force_index bids/layout/tests/test_layout.py::test_nested_include_exclude bids/layout/tests/test_layout.py::test_nested_include_exclude_with_regex bids/layout/tests/test_layout.py::test_layout_with_derivs bids/layout/tests/test_layout.py::test_layout_with_multi_derivs[None] bids/layout/tests/test_layout.py::test_get_layouts_in_scope[None] bids/layout/tests/test_layout.py::test_get_dataset_description[None] bids/layout/tests/test_layout.py::test_layout_with_multi_derivs[bidsdb0] bids/layout/tests/test_layout.py::test_get_layouts_in_scope[bidsdb0] bids/layout/tests/test_layout.py::test_get_dataset_description[bidsdb0] bids/layout/tests/test_layout.py::test_layout_with_multi_derivs[bidsdb1] bids/layout/tests/test_layout.py::test_get_layouts_in_scope[bidsdb1] bids/layout/tests/test_layout.py::test_get_dataset_description[bidsdb1] bids/layout/tests/test_layout.py::test_query_derivatives bids/layout/tests/test_layout.py::test_restricted_words_in_path bids/layout/tests/test_layout.py::test_derivative_getters bids/layout/tests/test_layout.py::test_get_tr bids/layout/tests/test_layout.py::test_parse_file_entities bids/layout/tests/test_layout.py::test_parse_file_entities_from_layout[None] bids/layout/tests/test_layout.py::test_parse_file_entities_from_layout[bidsdb-synth0] bids/layout/tests/test_layout.py::test_parse_file_entities_from_layout[bidsdb-synth1] bids/layout/tests/test_layout.py::test_deriv_indexing bids/layout/tests/test_layout.py::test_add_config_paths bids/layout/tests/test_layout.py::test_layout_in_scope bids/layout/tests/test_layout.py::test_indexed_file_associations bids/layout/tests/test_layout.py::test_layout_save bids/layout/tests/test_layout.py::test_indexing_tag_conflict bids/layout/tests/test_layout.py::test_get_with_wrong_dtypes bids/layout/tests/test_layout.py::test_get_with_regex_search bids/layout/tests/test_layout.py::test_get_with_regex_search_bad_dtype bids/layout/tests/test_layout.py::test_load_layout
bids/layout/layout.py
bids/layout/layout.py