You need to create an own Indexer that parse the pi_flexform. You could take a peek at this indexer, this parse the pi_flexform: https://github.com/MamounAlsmaiel/flux_kesearch_indexer
Its currently not V12 compatible but I think its a good start for creating an own one.