The best way to clean your shower filter is to simply rinse it off with warm water. You don't have to worry about soap or harsh chemicals.
Just make sure that you keep your shower filter away from children and pets. They could accidentally swallow some of the debris inside the filter.