I attempted to edit a swimlane so that JQL is "fixVersion ~ M1" but it does not work if my fixVersion= M1 2024.
It will work if I use equal syntax instead of contains but I wanted to create a scalable swimlane that will still work in the future. The reason is in 2025 we will have a fixVersion= M1 2025 and I would like for it to live within the Release M-1 swimlane.

** The answer was
fixVersion ~ "*keyword*"