import re

def parse_bfd_peers_data(data):
    bfd_peers = set()
    
    if data and data.get('success') and isinstance(data.get('data'), str):
        raw_text = data['data']
        
        found_ips = re.findall(r"peer\s+([0-9a-fA-F:.]+)", raw_text)
        
        for ip in found_ips:
            bfd_peers.add(ip)
            
    return bfd_peers