We can exclude a specific index by appending '-' to the index name.
Try giving index pattern as below:
retail-display-prod-electron-*,-retail-display-prod-electron-2024.03.19
© 2020. All Rights Reserved - Elasticsearch
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant logo are trademarks of the Apache Software Foundation in the United States and/or other countries.