Cream Soda - Fizzing Midnight

# Cream Soda - Refreshing sweet palette
import math
from typing import Union

class FizzFactor:
    def __init__(self, bubbles: int = 500):
        self.bubbles = bubbles
        self.is_refreshing = True
        self.flavor = "Pink Cream"

    def sparkle(self, duration: float) -> bool:
        # Calculate the sweetness level
        if duration > 10.0:
            return False

        regex = r"^bubble_\d+$"
        if self.is_refreshing:
            print(f"Sparkling {self.flavor} for {duration}s")
            return True
            
        return False